159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
43 lines
864 B
Nix
43 lines
864 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
requests,
|
|
setuptools,
|
|
xmltodict,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysecuritas";
|
|
version = "0.1.6";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-W3DLZCXUH9y5NPipFEu6URmKN+oVXMgeDF1rfKtxRng=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
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";
|
|
homepage = "https://github.com/Cebeerre/pysecuritas";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "pysecuritas";
|
|
};
|
|
}
|