2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
defusedxml,
|
|
|
|
flaky,
|
|
|
|
ipython,
|
|
|
|
keyring,
|
|
|
|
packaging,
|
|
|
|
pillow,
|
|
|
|
pyjwt,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
requests-futures,
|
|
|
|
requests-mock,
|
|
|
|
requests-oauthlib,
|
|
|
|
requests-toolbelt,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
typing-extensions,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jira";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.8.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pycontribs";
|
|
|
|
repo = pname;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-zE0fceCnyv0qKak8sRCXPCauC0KeOmczY/ZkVoHNcS8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
nativeBuildInputs = [
|
2024-01-13 08:15:51 +00:00
|
|
|
setuptools
|
2022-04-27 09:35:20 +00:00
|
|
|
setuptools-scm
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
defusedxml
|
2024-01-13 08:15:51 +00:00
|
|
|
packaging
|
|
|
|
requests
|
2022-04-27 09:35:20 +00:00
|
|
|
requests-oauthlib
|
2021-09-18 10:52:07 +00:00
|
|
|
requests-toolbelt
|
2024-04-21 15:54:59 +00:00
|
|
|
pillow
|
2024-01-13 08:15:51 +00:00
|
|
|
typing-extensions
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
optional-dependencies = {
|
2024-01-13 08:15:51 +00:00
|
|
|
cli = [
|
|
|
|
ipython
|
|
|
|
keyring
|
|
|
|
];
|
|
|
|
opt = [
|
|
|
|
# filemagic
|
|
|
|
pyjwt
|
|
|
|
# requests-jwt
|
|
|
|
# requests-keyberos
|
|
|
|
];
|
2024-06-05 15:53:02 +00:00
|
|
|
async = [ requests-futures ];
|
2024-01-13 08:15:51 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-18 10:52:07 +00:00
|
|
|
flaky
|
|
|
|
pytestCheckHook
|
|
|
|
requests-mock
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "--cov-report=xml --cov jira" ""
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "jira" ];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
# impure tests because of connectivity attempts to jira servers
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-04-27 09:35:20 +00:00
|
|
|
description = "Library to interact with the JIRA REST API";
|
2021-09-18 10:52:07 +00:00
|
|
|
homepage = "https://github.com/pycontribs/jira";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/pycontribs/jira/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd2;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2024-01-13 08:15:51 +00:00
|
|
|
mainProgram = "jirashell";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|