Files
nixpkgs/pkgs/development/python-modules/aiocentriconnect/default.nix
2026-06-06 19:43:15 -07:00

50 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
aiohttp,
async-timeout,
backoff,
aresponses,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "aiocentriconnect";
version = "0.2.3";
pyproject = true;
src = fetchFromGitHub {
owner = "gresrun";
repo = "aiocentriconnect";
tag = "v${finalAttrs.version}";
hash = "sha256-CBCD5JMUBD0NpkUVIaCXdsbKYgucELs11Pk9z0YufQw=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
async-timeout
backoff
];
nativeCheckInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "aiocentriconnect" ];
meta = {
description = "Asynchronous Python client for CentriConnect/MyPropane API";
homepage = "https://github.com/gresrun/aiocentriconnect";
changelog = "https://github.com/gresrun/aiocentriconnect/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jamiemagee ];
};
})