Files
nixpkgs/pkgs/development/python-modules/pysecuritas/default.nix
T
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

42 lines
823 B
Nix

{ 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 ];
};
}