2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitLab,
|
2024-09-19 14:19:46 +00:00
|
|
|
setuptools,
|
|
|
|
aiohttp,
|
|
|
|
aioresponses,
|
|
|
|
pytest-asyncio,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "doorbirdpy";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "3.0.3";
|
|
|
|
pyproject = true;
|
2023-01-11 07:51:40 +00:00
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "klikini";
|
|
|
|
repo = "doorbirdpy";
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-0UvzMFYKM/Sb9B2XwZwl+a9v7lTxAc1H59vR88VwDww=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [ aiohttp ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
nativeCheckInputs = [
|
2024-09-19 14:19:46 +00:00
|
|
|
aioresponses
|
|
|
|
pytest-asyncio
|
2023-03-08 16:32:21 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "doorbirdpy" ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://gitlab.com/klikini/doorbirdpy/-/tags/${version}";
|
2021-06-28 23:13:55 +00:00
|
|
|
description = "Python wrapper for the DoorBird LAN API";
|
|
|
|
homepage = "https://gitlab.com/klikini/doorbirdpy";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|