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