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

58 lines
1.1 KiB
Nix
Raw Normal View History

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