nixpkgs/pkgs/development/python-modules/jira/default.nix

58 lines
1.1 KiB
Nix
Raw Normal View History

2021-08-26 19:38:07 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, defusedxml
, flaky
, keyring
, requests-mock
, requests_oauthlib
, requests-toolbelt
, setuptools-scm
, setuptools-scm-git-archive
, pytestCheckHook
2018-06-03 20:11:29 +00:00
}:
2018-04-19 15:47:32 +00:00
buildPythonPackage rec {
pname = "jira";
2022-01-14 00:58:28 +00:00
version = "3.1.1";
2018-04-19 15:47:32 +00:00
2021-08-26 19:38:07 +00:00
src = fetchFromGitHub {
owner = "pycontribs";
repo = pname;
rev = version;
2022-01-14 00:58:28 +00:00
sha256 = "04s2zgwxip54g894hps2cm081cp07mbi7qipmsv4dvailhsg43nn";
2018-04-19 15:47:32 +00:00
};
2021-08-26 19:38:07 +00:00
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov-report=xml --cov jira" ""
'';
2018-06-03 20:11:29 +00:00
2021-08-26 19:38:07 +00:00
nativeBuildInputs = [ setuptools-scm setuptools-scm-git-archive ];
2018-06-03 20:11:29 +00:00
2021-08-26 19:38:07 +00:00
SETUPTOOLS_SCM_PRETEND_VERSION = version;
2018-04-19 15:47:32 +00:00
2021-08-26 19:38:07 +00:00
propagatedBuildInputs = [
defusedxml
keyring
requests_oauthlib
requests-toolbelt
];
2018-04-19 15:47:32 +00:00
2021-08-26 19:38:07 +00:00
checkInputs = [
flaky
pytestCheckHook
requests-mock
];
# impure tests because of connectivity attempts to jira servers
doCheck = false;
2018-05-01 10:53:11 +00:00
2018-04-19 15:47:32 +00:00
meta = with lib; {
description = "This library eases the use of the JIRA REST API from Python.";
2021-08-26 19:38:07 +00:00
homepage = "https://github.com/pycontribs/jira";
2018-04-19 15:47:32 +00:00
license = licenses.bsd2;
maintainers = with maintainers; [ globin ];
2018-04-19 15:47:32 +00:00
};
}