nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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 typing-extensions,
15 pytestCheckHook,
16}:
17
18buildPythonPackage rec {
19 pname = "atlassian-python-api";
20 version = "4.0.7";
21 format = "setuptools";
22
23 src = fetchFromGitHub {
24 owner = "atlassian-api";
25 repo = "atlassian-python-api";
26 tag = version;
27 hash = "sha256-8zfM/3apGMo6sTPA5ESu2SkgVOJUA09Wz/pGR12fA7c=";
28 };
29
30 dependencies = [
31 beautifulsoup4
32 deprecated
33 jmespath
34 lxml
35 oauthlib
36 requests
37 requests-kerberos
38 requests-oauthlib
39 six
40 typing-extensions
41 ];
42
43 nativeCheckInputs = [ pytestCheckHook ];
44
45 pythonImportsCheck = [ "atlassian" ];
46
47 meta = {
48 description = "Python Atlassian REST API Wrapper";
49 homepage = "https://github.com/atlassian-api/atlassian-python-api";
50 changelog = "https://github.com/atlassian-api/atlassian-python-api/releases/tag/${src.tag}";
51 license = lib.licenses.asl20;
52 maintainers = with lib.maintainers; [ arnoldfarkas ];
53 };
54}