Files
nixpkgs/pkgs/development/python-modules/jira/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

89 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
defusedxml,
flaky,
ipython,
keyring,
packaging,
pillow,
pyjwt,
pytestCheckHook,
pytest-cov-stub,
pythonOlder,
requests,
requests-futures,
requests-mock,
requests-oauthlib,
requests-toolbelt,
setuptools,
setuptools-scm,
typing-extensions,
}:
buildPythonPackage rec {
pname = "jira";
version = "3.10.5";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "pycontribs";
repo = "jira";
tag = version;
hash = "sha256-Gj9RmNJwmYQviXeNLL6WWFIO91jy6zY/s29Gy18lzyA=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
defusedxml
packaging
requests
requests-oauthlib
requests-toolbelt
pillow
typing-extensions
];
optional-dependencies = {
cli = [
ipython
keyring
];
opt = [
# filemagic
pyjwt
# requests-jwt
# requests-keyberos
];
async = [ requests-futures ];
};
nativeCheckInputs = [
flaky
pytestCheckHook
pytest-cov-stub
requests-mock
];
pythonImportsCheck = [ "jira" ];
# impure tests because of connectivity attempts to jira servers
doCheck = false;
meta = {
description = "Library to interact with the JIRA REST API";
homepage = "https://github.com/pycontribs/jira";
changelog = "https://github.com/pycontribs/jira/releases/tag/${src.tag}";
license = lib.licenses.bsd2;
maintainers = [ ];
mainProgram = "jirashell";
};
}