2019-01-16 00:08:39 +00:00
|
|
|
{ stdenv, libffi, openssl, python3Packages }:
|
2018-05-13 21:35:42 +00:00
|
|
|
let
|
2019-01-16 00:08:39 +00:00
|
|
|
inherit (python3Packages) fetchPypi buildPythonApplication vcrpy mock hiro;
|
2018-05-13 21:35:42 +00:00
|
|
|
in
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "jira-cli";
|
|
|
|
version = "2.2";
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "314118d5d851394ebf910122fd7ce871f63581393968c71456441eb56be3b112";
|
|
|
|
};
|
|
|
|
|
|
|
|
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 21:35:42 +00: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 21:35:42 +00:00
|
|
|
jira keyrings-alt
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A command line interface to Jira";
|
2018-06-23 11:34:55 +00:00
|
|
|
homepage = https://github.com/alisaifee/jira-cli;
|
2018-05-13 21:35:42 +00:00
|
|
|
maintainers = with maintainers; [ nyarly ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|