diff --git a/pkgs/development/python-modules/jira/default.nix b/pkgs/development/python-modules/jira/default.nix index 2a1abe7b59ce..ac4f45f4e9d3 100644 --- a/pkgs/development/python-modules/jira/default.nix +++ b/pkgs/development/python-modules/jira/default.nix @@ -1,29 +1,35 @@ { lib, buildPythonPackage, fetchPypi, isPy3k , pytest, pytestrunner, pbr, glibcLocales , pytestcov -, requests, requests_oauthlib, requests_toolbelt, defusedxml }: +, requests, requests_oauthlib, requests_toolbelt, defusedxml +, ipython +}: buildPythonPackage rec { pname = "jira"; version = "1.0.15"; + PBR_VERSION = version; + src = fetchPypi { inherit pname version; sha256 = "20108a1d5b0dd058d5d4e0047f2d09ee06aaa413b22ca4d5c249e86167417fe8"; }; buildInputs = [ glibcLocales pytest pytestcov pytestrunner pbr ]; - propagatedBuildInputs = [ requests requests_oauthlib requests_toolbelt defusedxml ]; + propagatedBuildInputs = [ requests requests_oauthlib requests_toolbelt defusedxml pbr ipython ]; + + # impure tests because of connectivity attempts to jira servers + doCheck = false; + + patches = [ ./sphinx-fix.patch ]; LC_ALL = "en_US.utf8"; disabled = !isPy3k; - # no tests in release tarball - doCheck = false; - meta = with lib; { description = "This library eases the use of the JIRA REST API from Python."; license = licenses.bsd2; - maintainers = with maintainers; [ globin ]; + maintainers = with maintainers; [ globin ma27 ]; }; } diff --git a/pkgs/development/python-modules/jira/sphinx-fix.patch b/pkgs/development/python-modules/jira/sphinx-fix.patch new file mode 100644 index 000000000000..ccc47ac4b9cf --- /dev/null +++ b/pkgs/development/python-modules/jira/sphinx-fix.patch @@ -0,0 +1,11 @@ +diff --git a/setup.py b/setup.py +index c49a24d..31aeec2 100644 +--- a/setup.py ++++ b/setup.py +@@ -11,5 +11,5 @@ except ImportError: + + + setuptools.setup( +- setup_requires=['pbr>=3.0.0', 'setuptools>=17.1', 'pytest-runner', 'sphinx>=1.6.5'], ++ setup_requires=['pbr>=3.0.0', 'setuptools>=17.1', 'pytest-runner'], + pbr=True)