depot/third_party/nixpkgs/pkgs/development/python-modules/py-aosmith/default.nix
Default email 60f07311b9 Project import generated by Copybara.
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
2024-02-06 17:22:34 -08:00

42 lines
802 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, aiohttp
}:
buildPythonPackage rec {
pname = "py-aosmith";
version = "1.0.6";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "bdr99";
repo = "py-aosmith";
rev = "refs/tags/${version}";
hash = "sha256-4KODe+urqYMbN0+tNwQnvO3A9Zc/Xdo4uhJErn3BYS4=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
];
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 ];
};
}