Files
nixpkgs/pkgs/development/python-modules/py-aosmith/default.nix
2025-01-04 00:19:17 +01:00

46 lines
838 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
poetry-core,
aiohttp,
tenacity,
}:
buildPythonPackage rec {
pname = "py-aosmith";
version = "1.0.12";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "bdr99";
repo = "py-aosmith";
tag = version;
hash = "sha256-FhrAL1Iybi4LW4o8IvCAfEcrwbzJ+dnh+9W9HEd7c+M=";
};
build-system = [ poetry-core ];
pythonRelaxDeps = [ "tenacity" ];
dependencies = [
aiohttp
tenacity
];
pythonImportsCheck = [ "py_aosmith" ];
# upstream has no tests
doCheck = false;
meta = {
description = "Python client library for A. O. Smith water heaters";
homepage = "https://github.com/bdr99/py-aosmith";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}