python3Packages.ha-iotawattpy: enable tests (#544357)

This commit is contained in:
Sandro
2026-07-23 14:21:32 +00:00
committed by GitHub
@@ -4,15 +4,16 @@
fetchPypi,
httpx,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "ha-iotawattpy";
version = "0.1.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
inherit (finalAttrs) pname version;
hash = "sha256-eMsBEbmENjbJME9Gzo4O9LbGo1i0MP0IuwLUAYqxbI8=";
};
@@ -20,9 +21,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [ httpx ];
# Project doesn't tag releases or ship the tests with PyPI
# https://github.com/gtdiehl/iotawattpy/issues/14
doCheck = false;
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "iotawattpy" ];
@@ -32,4 +31,4 @@ buildPythonPackage rec {
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ fab ];
};
}
})