aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/tools/jira_cli/default.nix
blob: 4040debf15ea385db94f73408e4dc9eaf1684b7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ stdenv, libffi, openssl, python3Packages }:
let
  inherit (python3Packages) fetchPypi buildPythonApplication vcrpy mock hiro;
in
  buildPythonApplication rec {
    pname = "jira-cli";
    version = "3.0";
    src = fetchPypi {
      inherit pname version;
      sha256 = "86f7d4ad7292c9a27bbc265d09e7bcd00ef8159f20172998d85f25aad53b0df6";
    };

    postPatch = ''
      substituteInPlace requirements/main.txt --replace "argparse" ""
    '';

    # Tests rely on VCR cassettes being written during tests. R/O nix store prevents this.
    doCheck = false;
    checkInputs = with python3Packages; [ vcrpy mock hiro ];
    buildInputs = [ libffi openssl ];
    propagatedBuildInputs = with python3Packages; [
      ordereddict requests six suds-jurko termcolor keyring
      jira  keyrings-alt
    ];

    meta = with stdenv.lib; {
      description = "A command line interface to Jira";
      homepage = "https://github.com/alisaifee/jira-cli";
      maintainers = with maintainers; [ nyarly ];
      license = licenses.mit;
    };
  }