at 22.05-pre 1.2 kB view raw
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 13}: 14 15buildPythonPackage rec { 16 pname = "jira"; 17 version = "3.0.1"; 18 19 src = fetchFromGitHub { 20 owner = "pycontribs"; 21 repo = pname; 22 rev = version; 23 sha256 = "sha256-hAUAzkHPXFDlKEom+dkzr8GQ+sqK2Ci1/k+QuSNvifE="; 24 }; 25 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 ]; 47 48 # impure tests because of connectivity attempts to jira servers 49 doCheck = false; 50 51 meta = with lib; { 52 description = "This library eases the use of the JIRA REST API from Python."; 53 homepage = "https://github.com/pycontribs/jira"; 54 license = licenses.bsd2; 55 maintainers = with maintainers; [ globin ]; 56 }; 57}