depot/third_party/nixpkgs/pkgs/development/python-modules/aioguardian/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

70 lines
1.3 KiB
Nix

{ lib
, aiohttp
, async-timeout
, asyncio-dgram
, buildPythonPackage
, certifi
, docutils
, fetchFromGitHub
, poetry-core
, pytest-aiohttp
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, voluptuous
}:
buildPythonPackage rec {
pname = "aioguardian";
version = "2023.12.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "bachya";
repo = "aioguardian";
rev = "refs/tags/${version}";
hash = "sha256-7fY8+aAxlDtOBLu8SadY5qiH6+RvxnFpOw1RXTonP2o=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
async-timeout
asyncio-dgram
certifi
docutils
voluptuous
];
nativeCheckInputs = [
asyncio-dgram
pytest-aiohttp
pytest-asyncio
pytestCheckHook
];
disabledTestPaths = [
"examples/"
];
pythonImportsCheck = [
"aioguardian"
];
meta = with lib; {
description = " Python library to interact with Elexa Guardian devices";
longDescription = ''
aioguardian is an asyncio-focused library for interacting with the
Guardian line of water valves and sensors from Elexa.
'';
homepage = "https://github.com/bachya/aioguardian";
changelog = "https://github.com/bachya/aioguardian/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}