about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pysecuritas/default.nix
blob: c5ba481bab5507d59d7ca480f1a0da7adee00be6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
  lib,
  buildPythonPackage,
  fetchPypi,
  pythonOlder,
  requests,
  xmltodict,
}:

buildPythonPackage rec {
  pname = "pysecuritas";
  version = "0.1.6";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "W3DLZCXUH9y5NPipFEu6URmKN+oVXMgeDF1rfKtxRng=";
  };

  propagatedBuildInputs = [
    xmltodict
    requests
  ];

  # Project doesn't ship tests with PyPI releases
  # https://github.com/Cebeerre/pysecuritas/issues/13
  doCheck = false;

  pythonImportsCheck = [ "pysecuritas" ];

  meta = with lib; {
    description = "Python client to access Securitas Direct Mobile API";
    mainProgram = "pysecuritas";
    homepage = "https://github.com/Cebeerre/pysecuritas";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}