2021-01-25 08:26:54 +00:00
|
|
|
{ lib, libffi, openssl, python3Packages }:
|
2018-05-13 22:35:42 +01:00
|
|
|
let
|
2019-01-16 00:08:39 +00:00
|
|
|
inherit (python3Packages) fetchPypi buildPythonApplication vcrpy mock hiro;
|
2018-05-13 22:35:42 +01:00
|
|
|
in
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "jira-cli";
|
2020-11-25 06:55:25 +00:00
|
|
|
version = "3.0";
|
2018-05-13 22:35:42 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-25 06:55:25 +00:00
|
|
|
sha256 = "86f7d4ad7292c9a27bbc265d09e7bcd00ef8159f20172998d85f25aad53b0df6";
|
2018-05-13 22:35:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements/main.txt --replace "argparse" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Tests rely on VCR cassettes being written during tests. R/O nix store prevents this.
|
|
|
|
doCheck = false;
|
2019-01-16 00:08:39 +00:00
|
|
|
checkInputs = with python3Packages; [ vcrpy mock hiro ];
|
2018-05-13 22:35:42 +01:00
|
|
|
buildInputs = [ libffi openssl ];
|
2019-01-16 00:08:39 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2019-01-22 11:30:45 +00:00
|
|
|
ordereddict requests six suds-jurko termcolor keyring
|
2018-05-13 22:35:42 +01:00
|
|
|
jira keyrings-alt
|
|
|
|
];
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2018-05-13 22:35:42 +01:00
|
|
|
description = "A command line interface to Jira";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/alisaifee/jira-cli";
|
2018-05-13 22:35:42 +01:00
|
|
|
maintainers = with maintainers; [ nyarly ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|