nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

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

python3Packages.jira: 2.0.0 -> 3.0.1

+40 -29
+40 -18
pkgs/development/python-modules/jira/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, isPy3k 2 - , pytest, pytest-runner, pbr, glibcLocales , pytest-cov 3 - , requests, requests_oauthlib, requests-toolbelt, defusedxml 4 - , ipython 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , defusedxml 5 + , flaky 6 + , keyring 7 + , requests-mock 8 + , requests_oauthlib 9 + , requests-toolbelt 10 + , setuptools-scm 11 + , setuptools-scm-git-archive 12 + , pytestCheckHook 5 13 }: 6 14 7 15 buildPythonPackage rec { 8 16 pname = "jira"; 9 - version = "2.0.0"; 17 + version = "3.0.1"; 10 18 11 - PBR_VERSION = version; 12 - 13 - src = fetchPypi { 14 - inherit pname version; 15 - sha256 = "e2a94adff98e45b29ded030adc76103eab34fa7d4d57303f211f572bedba0e93"; 19 + src = fetchFromGitHub { 20 + owner = "pycontribs"; 21 + repo = pname; 22 + rev = version; 23 + sha256 = "sha256-hAUAzkHPXFDlKEom+dkzr8GQ+sqK2Ci1/k+QuSNvifE="; 16 24 }; 17 25 18 - buildInputs = [ glibcLocales pytest pytest-cov pytest-runner pbr ]; 19 - propagatedBuildInputs = [ requests requests_oauthlib requests-toolbelt defusedxml pbr ipython ]; 26 + postPatch = '' 27 + substituteInPlace setup.cfg \ 28 + --replace "--cov-report=xml --cov jira" "" 29 + ''; 30 + 31 + nativeBuildInputs = [ setuptools-scm setuptools-scm-git-archive ]; 32 + 33 + SETUPTOOLS_SCM_PRETEND_VERSION = version; 34 + 35 + propagatedBuildInputs = [ 36 + defusedxml 37 + keyring 38 + requests_oauthlib 39 + requests-toolbelt 40 + ]; 41 + 42 + checkInputs = [ 43 + flaky 44 + pytestCheckHook 45 + requests-mock 46 + ]; 20 47 21 48 # impure tests because of connectivity attempts to jira servers 22 49 doCheck = false; 23 50 24 - patches = [ ./sphinx-fix.patch ]; 25 - 26 - LC_ALL = "en_US.utf8"; 27 - 28 - disabled = !isPy3k; 29 - 30 51 meta = with lib; { 31 52 description = "This library eases the use of the JIRA REST API from Python."; 53 + homepage = "https://github.com/pycontribs/jira"; 32 54 license = licenses.bsd2; 33 55 maintainers = with maintainers; [ globin ]; 34 56 };
-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)