depot/third_party/nixpkgs/pkgs/development/python-modules/py-aosmith/default.nix
Default email 657f08b14c Project import generated by Copybara.
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
2024-10-29 11:11:06 +00:00

45 lines
852 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=";
};
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 ];
};
}