From d51e231f5fc63ca95655b4d97f51d4f5bbf54673 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 15 Aug 2025 01:35:37 +0200 Subject: [PATCH] python313Packages.pyhomematic: refactor --- .../python-modules/pyhomematic/default.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pyhomematic/default.nix b/pkgs/development/python-modules/pyhomematic/default.nix index 8b6b6e68627c..a6cd5f14e724 100644 --- a/pkgs/development/python-modules/pyhomematic/default.nix +++ b/pkgs/development/python-modules/pyhomematic/default.nix @@ -1,32 +1,31 @@ { lib, buildPythonPackage, - isPy3k, + setuptools, fetchPypi, - python, + unittestCheckHook, }: buildPythonPackage rec { pname = "pyhomematic"; version = "0.1.78"; - format = "setuptools"; - - disabled = !isPy3k; + pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-uB9aDa1urIwL2DBdBwPi0sHWPW7SUZ3EaAjuMLSOudc="; }; - checkPhase = '' - ${python.interpreter} -m unittest - ''; + build-system = [ setuptools ]; + + nativeCheckInputs = [ unittestCheckHook ]; pythonImportsCheck = [ "pyhomematic" ]; meta = with lib; { description = "Python 3 Interface to interact with Homematic devices"; homepage = "https://github.com/danielperna84/pyhomematic"; + changelog = "https://github.com/danielperna84/pyhomematic/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ dotlambda ]; };