fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
60 lines
1.2 KiB
Nix
60 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchPypi,
|
|
dataclasses-json,
|
|
pycryptodome,
|
|
setuptools-scm,
|
|
pytest-asyncio,
|
|
pytest-cases,
|
|
pytest7CheckHook,
|
|
pytz,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysiaalarm";
|
|
version = "3.1.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-q42bsBeAwU9lt7wtYGFJv23UBND+aMXZJlSWyTfZDQE=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg \
|
|
--replace "==" ">="
|
|
substituteInPlace pytest.ini \
|
|
--replace "--cov pysiaalarm --cov-report term-missing" ""
|
|
'';
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [
|
|
dataclasses-json
|
|
pycryptodome
|
|
pytz
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytest-cases
|
|
pytest7CheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pysiaalarm"
|
|
"pysiaalarm.aio"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python package for creating a client that talks with SIA-based alarm systems";
|
|
homepage = "https://github.com/eavanvalkenburg/pysiaalarm";
|
|
changelog = "https://github.com/eavanvalkenburg/pysiaalarm/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|