1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 requests,
7 setuptools,
8 xmltodict,
9}:
10
11buildPythonPackage rec {
12 pname = "pysecuritas";
13 version = "0.1.6";
14 pyproject = true;
15
16 disabled = pythonOlder "3.6";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-W3DLZCXUH9y5NPipFEu6URmKN+oVXMgeDF1rfKtxRng=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 xmltodict
27 requests
28 ];
29
30 # Project doesn't ship tests with PyPI releases
31 # https://github.com/Cebeerre/pysecuritas/issues/13
32 doCheck = false;
33
34 pythonImportsCheck = [ "pysecuritas" ];
35
36 meta = with lib; {
37 description = "Python client to access Securitas Direct Mobile API";
38 homepage = "https://github.com/Cebeerre/pysecuritas";
39 license = licenses.mit;
40 maintainers = with maintainers; [ fab ];
41 mainProgram = "pysecuritas";
42 };
43}