1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 beautifulsoup4,
6 deprecated,
7 jmespath,
8 lxml,
9 oauthlib,
10 requests,
11 requests-kerberos,
12 requests-oauthlib,
13 six,
14 pytestCheckHook,
15 pythonOlder,
16}:
17
18buildPythonPackage rec {
19 pname = "atlassian-python-api";
20 version = "3.41.11";
21 format = "setuptools";
22
23 disabled = pythonOlder "3.7";
24
25 src = fetchFromGitHub {
26 owner = "atlassian-api";
27 repo = pname;
28 rev = "refs/tags/${version}";
29 hash = "sha256-yQqy+pFl5TK4CEUM+vpwl+pkUjBuc0xvqC9o1ZC5m7c=";
30 };
31
32 propagatedBuildInputs = [
33 beautifulsoup4
34 deprecated
35 jmespath
36 lxml
37 oauthlib
38 requests
39 requests-kerberos
40 requests-oauthlib
41 six
42 ];
43
44 nativeCheckInputs = [ pytestCheckHook ];
45
46 pythonImportsCheck = [ "atlassian" ];
47
48 meta = with lib; {
49 description = "Python Atlassian REST API Wrapper";
50 homepage = "https://github.com/atlassian-api/atlassian-python-api";
51 changelog = "https://github.com/atlassian-api/atlassian-python-api/releases/tag/${version}";
52 license = licenses.asl20;
53 maintainers = with maintainers; [ arnoldfarkas ];
54 };
55}