nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 85 lines 1.5 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 defusedxml, 6 flaky, 7 ipython, 8 keyring, 9 packaging, 10 pillow, 11 pyjwt, 12 pytestCheckHook, 13 pytest-cov-stub, 14 requests, 15 requests-futures, 16 requests-mock, 17 requests-oauthlib, 18 requests-toolbelt, 19 setuptools, 20 setuptools-scm, 21 typing-extensions, 22}: 23 24buildPythonPackage rec { 25 pname = "jira"; 26 version = "3.10.5"; 27 pyproject = true; 28 29 src = fetchFromGitHub { 30 owner = "pycontribs"; 31 repo = "jira"; 32 tag = version; 33 hash = "sha256-Gj9RmNJwmYQviXeNLL6WWFIO91jy6zY/s29Gy18lzyA="; 34 }; 35 36 build-system = [ 37 setuptools 38 setuptools-scm 39 ]; 40 41 dependencies = [ 42 defusedxml 43 packaging 44 requests 45 requests-oauthlib 46 requests-toolbelt 47 pillow 48 typing-extensions 49 ]; 50 51 optional-dependencies = { 52 cli = [ 53 ipython 54 keyring 55 ]; 56 opt = [ 57 # filemagic 58 pyjwt 59 # requests-jwt 60 # requests-keyberos 61 ]; 62 async = [ requests-futures ]; 63 }; 64 65 nativeCheckInputs = [ 66 flaky 67 pytestCheckHook 68 pytest-cov-stub 69 requests-mock 70 ]; 71 72 pythonImportsCheck = [ "jira" ]; 73 74 # impure tests because of connectivity attempts to jira servers 75 doCheck = false; 76 77 meta = { 78 description = "Library to interact with the JIRA REST API"; 79 homepage = "https://github.com/pycontribs/jira"; 80 changelog = "https://github.com/pycontribs/jira/releases/tag/${src.tag}"; 81 license = lib.licenses.bsd2; 82 maintainers = [ ]; 83 mainProgram = "jirashell"; 84 }; 85}