c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
44 lines
826 B
Nix
44 lines
826 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, aiohttp
|
|
, tenacity
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "py-aosmith";
|
|
version = "1.0.8";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bdr99";
|
|
repo = "py-aosmith";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-TjBjyWxBPrZEY/o1DZ+GiFTHTW37WwFN0oyJSyGru28=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
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 ];
|
|
};
|
|
}
|