2020-01-20 16:57:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-05-07 20:35:04 +01:00
|
|
|
, fetchFromGitHub
|
2020-11-29 17:39:08 +00:00
|
|
|
, deprecated
|
2020-01-20 16:57:41 +00:00
|
|
|
, oauthlib
|
|
|
|
, requests
|
2022-02-25 14:02:40 +00:00
|
|
|
, requests-oauthlib
|
2020-01-20 16:57:41 +00:00
|
|
|
, six
|
2021-05-07 20:35:04 +01:00
|
|
|
, pytestCheckHook
|
2022-02-08 16:55:18 +00:00
|
|
|
, pythonOlder
|
2020-01-20 16:57:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "atlassian-python-api";
|
2022-05-26 08:04:35 +01:00
|
|
|
version = "3.25.0";
|
2022-02-08 16:55:18 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2021-05-07 20:35:04 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "atlassian-api";
|
|
|
|
repo = pname;
|
2022-05-25 10:25:56 +01:00
|
|
|
rev = "refs/tags/${version}";
|
2022-05-26 08:04:35 +01:00
|
|
|
sha256 = "sha256-O0hD8PCmUH38k2a0cnt4Ihb+8/wb9RIL27xc/LONBU0=";
|
2020-01-20 16:57:41 +00:00
|
|
|
};
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2022-02-08 16:55:18 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
deprecated
|
|
|
|
oauthlib
|
|
|
|
requests
|
2022-02-25 14:02:40 +00:00
|
|
|
requests-oauthlib
|
2022-02-08 16:55:18 +00:00
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2021-05-07 20:35:04 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2022-02-08 16:55:18 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"atlassian"
|
|
|
|
];
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2020-01-20 16:57:41 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python Atlassian REST API Wrapper";
|
|
|
|
homepage = "https://github.com/atlassian-api/atlassian-python-api";
|
|
|
|
license = licenses.asl20;
|
2022-02-08 16:55:18 +00:00
|
|
|
maintainers = with maintainers; [ arnoldfarkas ];
|
2020-01-20 16:57:41 +00:00
|
|
|
};
|
|
|
|
}
|