1{
2 lib,
3 attrs,
4 buildPythonPackage,
5 certifi,
6 chardet,
7 fetchFromGitHub,
8 idna,
9 iniconfig,
10 more-itertools,
11 packaging,
12 pluggy,
13 py,
14 pyparsing,
15 python-slugify,
16 requests,
17 six,
18 text-unidecode,
19 toml,
20 urllib3,
21}:
22
23buildPythonPackage rec {
24 pname = "patrowl4py";
25 version = "1.1.9";
26 format = "setuptools";
27
28 src = fetchFromGitHub {
29 owner = "Patrowl";
30 repo = "Patrowl4py";
31 rev = version;
32 hash = "sha256-ZGvntLbXIWmL0WoT+kQoNT6gDPgsSKwHQQjYlarvnKo=";
33 };
34
35 propagatedBuildInputs = [
36 attrs
37 certifi
38 chardet
39 idna
40 iniconfig
41 more-itertools
42 packaging
43 pluggy
44 py
45 pyparsing
46 python-slugify
47 requests
48 six
49 text-unidecode
50 toml
51 urllib3
52 ];
53
54 # Tests require network access
55 doCheck = false;
56
57 pythonImportsCheck = [ "patrowl4py" ];
58
59 meta = with lib; {
60 description = "Python API Client for PatrOwl";
61 homepage = "https://github.com/Patrowl/Patrowl4py";
62 license = licenses.agpl3Only;
63 maintainers = with maintainers; [ fab ];
64 };
65}