lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

pythonPackages.jira: fix build (#41419)

The build for `pythonPackages.jira` failed with the following error:

```
Download error on https://pypi.python.org/simple/sphinx/: [Errno -2] Name or service not known -- Some packages may not be found!
Couldn't find index page for 'sphinx' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found!
No local packages or working download links found for sphinx>=1.6.5
Traceback (most recent call last):
...
File "/nix/store/bp4dillg6xxblpf00v8d9nxfx3bnggfy-python3.6-bootstrapped-pip-10.0.1/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 667, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('sphinx>=1.6.5')
builder for '/nix/store/8dv7mpspyk6kxwnzqb43rzm4q5j14xp0-python3.6-jira-1.0.15.drv' failed with exit code 1
```

The root issue is most likely caused by some docs fixes upstream
(https://github.com/pycontribs/jira/commit/519183d874fde26e676a75aa53496968643aaac0)
which were released in 1.0.15. The bump (without the fix) has been
performed in 7a6bf668fb73cd4d1096fa1c0162d9c6009f1d7e. Since `sphinx`
isn't needed during runtime, it's not necessary to use it as
`propagatedBuildInput`. In order to work around this the dependency had
to be removed from from `setup.py`.

See https://hydra.nixos.org/build/75004048 for further reference

authored by

Maximilian Bosch and committed by
xeji
a47d34ce ca11e5ac

+23 -6
+12 -6
pkgs/development/python-modules/jira/default.nix
··· 1 1 { lib, buildPythonPackage, fetchPypi, isPy3k 2 2 , pytest, pytestrunner, pbr, glibcLocales , pytestcov 3 - , requests, requests_oauthlib, requests_toolbelt, defusedxml }: 3 + , requests, requests_oauthlib, requests_toolbelt, defusedxml 4 + , ipython 5 + }: 4 6 5 7 buildPythonPackage rec { 6 8 pname = "jira"; 7 9 version = "1.0.15"; 8 10 11 + PBR_VERSION = version; 12 + 9 13 src = fetchPypi { 10 14 inherit pname version; 11 15 sha256 = "20108a1d5b0dd058d5d4e0047f2d09ee06aaa413b22ca4d5c249e86167417fe8"; 12 16 }; 13 17 14 18 buildInputs = [ glibcLocales pytest pytestcov pytestrunner pbr ]; 15 - propagatedBuildInputs = [ requests requests_oauthlib requests_toolbelt defusedxml ]; 19 + propagatedBuildInputs = [ requests requests_oauthlib requests_toolbelt defusedxml pbr ipython ]; 20 + 21 + # impure tests because of connectivity attempts to jira servers 22 + doCheck = false; 23 + 24 + patches = [ ./sphinx-fix.patch ]; 16 25 17 26 LC_ALL = "en_US.utf8"; 18 27 19 28 disabled = !isPy3k; 20 29 21 - # no tests in release tarball 22 - doCheck = false; 23 - 24 30 meta = with lib; { 25 31 description = "This library eases the use of the JIRA REST API from Python."; 26 32 license = licenses.bsd2; 27 - maintainers = with maintainers; [ globin ]; 33 + maintainers = with maintainers; [ globin ma27 ]; 28 34 }; 29 35 }
+11
pkgs/development/python-modules/jira/sphinx-fix.patch
··· 1 + diff --git a/setup.py b/setup.py 2 + index c49a24d..31aeec2 100644 3 + --- a/setup.py 4 + +++ b/setup.py 5 + @@ -11,5 +11,5 @@ except ImportError: 6 + 7 + 8 + setuptools.setup( 9 + - setup_requires=['pbr>=3.0.0', 'setuptools>=17.1', 'pytest-runner', 'sphinx>=1.6.5'], 10 + + setup_requires=['pbr>=3.0.0', 'setuptools>=17.1', 'pytest-runner'], 11 + pbr=True)