841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, dataclasses-json
|
|
, pycryptodome
|
|
, setuptools
|
|
, pytest-asyncio
|
|
, pytest-cases
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysiaalarm";
|
|
version = "3.0.0";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "b1c3a3d48d399bc91014167f59b23af601044d182db9267c23a9cf3559922122";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg \
|
|
--replace "==" ">="
|
|
substituteInPlace pytest.ini \
|
|
--replace "--cov pysiaalarm --cov-report term-missing" ""
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
dataclasses-json
|
|
pycryptodome
|
|
setuptools
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-asyncio
|
|
pytest-cases
|
|
pytestCheckHook
|
|
];
|
|
|
|
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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|