From eeb486f363f296d2a3cccd625094ba31a6f545ae Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Wed, 22 Jul 2026 00:40:01 +0200 Subject: [PATCH 1/2] python3Packages.ha-iotawattpy: enable tests --- pkgs/development/python-modules/ha-iotawattpy/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/ha-iotawattpy/default.nix b/pkgs/development/python-modules/ha-iotawattpy/default.nix index dca667749f94..2cd5b6c0ffea 100644 --- a/pkgs/development/python-modules/ha-iotawattpy/default.nix +++ b/pkgs/development/python-modules/ha-iotawattpy/default.nix @@ -4,6 +4,7 @@ fetchPypi, httpx, setuptools, + pytestCheckHook, }: buildPythonPackage rec { @@ -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" ]; From e778c8022f02bd0723223d03aaa7d86d9702a53c Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Wed, 22 Jul 2026 00:40:31 +0200 Subject: [PATCH 2/2] python3Packages.ha-iotawattpy: use finalAttrs --- pkgs/development/python-modules/ha-iotawattpy/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/ha-iotawattpy/default.nix b/pkgs/development/python-modules/ha-iotawattpy/default.nix index 2cd5b6c0ffea..4fe401a0db48 100644 --- a/pkgs/development/python-modules/ha-iotawattpy/default.nix +++ b/pkgs/development/python-modules/ha-iotawattpy/default.nix @@ -7,13 +7,13 @@ 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="; }; @@ -31,4 +31,4 @@ buildPythonPackage rec { license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ fab ]; }; -} +})