nixpkgs/pkgs/development/tools/jira_cli/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

33 lines
1006 B
Nix

{ lib, libffi, openssl, python3Packages }:
let
inherit (python3Packages) fetchPypi buildPythonApplication;
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;
nativeCheckInputs = with python3Packages; [ vcrpy mock hiro ];
buildInputs = [ libffi openssl ];
propagatedBuildInputs = with python3Packages; [
requests six suds-jurko termcolor keyring
jira keyrings-alt
];
meta = with lib; {
description = "A command line interface to Jira";
homepage = "https://github.com/alisaifee/jira-cli";
maintainers = with maintainers; [ nyarly ];
license = licenses.mit;
};
}