2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchPypi,
|
|
|
|
dataclasses-json,
|
|
|
|
pycryptodome,
|
|
|
|
setuptools-scm,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytest-cases,
|
|
|
|
pytest7CheckHook,
|
|
|
|
pytz,
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pysiaalarm";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "3.1.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-q42bsBeAwU9lt7wtYGFJv23UBND+aMXZJlSWyTfZDQE=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "==" ">="
|
|
|
|
substituteInPlace pytest.ini \
|
|
|
|
--replace "--cov pysiaalarm --cov-report term-missing" ""
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
dataclasses-json
|
|
|
|
pycryptodome
|
2023-04-29 16:46:19 +00:00
|
|
|
pytz
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytest-cases
|
2024-04-21 15:54:59 +00:00
|
|
|
pytest7CheckHook
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
2023-04-29 16:46:19 +00:00
|
|
|
changelog = "https://github.com/eavanvalkenburg/pysiaalarm/releases/tag/v${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|