python3Packages.jira: rename requests-oauthlib

This commit is contained in:
Fabian Affolter 2022-02-25 15:25:27 +01:00
parent 247a5b0d18
commit 0a34a96698

View File

@ -5,37 +5,39 @@
, flaky
, keyring
, requests-mock
, requests_oauthlib
, requests-oauthlib
, requests-toolbelt
, setuptools-scm
, setuptools-scm-git-archive
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "jira";
version = "3.1.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pycontribs";
repo = pname;
rev = version;
sha256 = "04s2zgwxip54g894hps2cm081cp07mbi7qipmsv4dvailhsg43nn";
hash = "sha256-1g7yNKRR7Ua2rjfiE1c94LKAQGVCX0gSeqTc2Pn7QhM=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov-report=xml --cov jira" ""
'';
nativeBuildInputs = [ setuptools-scm setuptools-scm-git-archive ];
nativeBuildInputs = [
setuptools-scm
setuptools-scm-git-archive
];
SETUPTOOLS_SCM_PRETEND_VERSION = version;
propagatedBuildInputs = [
defusedxml
keyring
requests_oauthlib
requests-oauthlib
requests-toolbelt
];
@ -45,11 +47,20 @@ buildPythonPackage rec {
requests-mock
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov-report=xml --cov jira" ""
'';
pythonImportsCheck = [
"jira"
];
# impure tests because of connectivity attempts to jira servers
doCheck = false;
meta = with lib; {
description = "This library eases the use of the JIRA REST API from Python.";
description = "Library to interact with the JIRA REST API";
homepage = "https://github.com/pycontribs/jira";
license = licenses.bsd2;
maintainers = with maintainers; [ globin ];