python3Packages.jira: rename requests-oauthlib
This commit is contained in:
parent
247a5b0d18
commit
0a34a96698
@ -5,37 +5,39 @@
|
|||||||
, flaky
|
, flaky
|
||||||
, keyring
|
, keyring
|
||||||
, requests-mock
|
, requests-mock
|
||||||
, requests_oauthlib
|
, requests-oauthlib
|
||||||
, requests-toolbelt
|
, requests-toolbelt
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
, setuptools-scm-git-archive
|
, setuptools-scm-git-archive
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "jira";
|
pname = "jira";
|
||||||
version = "3.1.1";
|
version = "3.1.1";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pycontribs";
|
owner = "pycontribs";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "04s2zgwxip54g894hps2cm081cp07mbi7qipmsv4dvailhsg43nn";
|
hash = "sha256-1g7yNKRR7Ua2rjfiE1c94LKAQGVCX0gSeqTc2Pn7QhM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
nativeBuildInputs = [
|
||||||
substituteInPlace setup.cfg \
|
setuptools-scm
|
||||||
--replace "--cov-report=xml --cov jira" ""
|
setuptools-scm-git-archive
|
||||||
'';
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools-scm setuptools-scm-git-archive ];
|
|
||||||
|
|
||||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
defusedxml
|
defusedxml
|
||||||
keyring
|
keyring
|
||||||
requests_oauthlib
|
requests-oauthlib
|
||||||
requests-toolbelt
|
requests-toolbelt
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -45,11 +47,20 @@ buildPythonPackage rec {
|
|||||||
requests-mock
|
requests-mock
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.cfg \
|
||||||
|
--replace "--cov-report=xml --cov jira" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"jira"
|
||||||
|
];
|
||||||
|
|
||||||
# impure tests because of connectivity attempts to jira servers
|
# impure tests because of connectivity attempts to jira servers
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = with lib; {
|
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";
|
homepage = "https://github.com/pycontribs/jira";
|
||||||
license = licenses.bsd2;
|
license = licenses.bsd2;
|
||||||
maintainers = with maintainers; [ globin ];
|
maintainers = with maintainers; [ globin ];
|
||||||
|
Loading…
Reference in New Issue
Block a user