From 1f477a7edab6bd1c481c53a4d81b445bbad8af66 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Sat, 8 Aug 2026 20:12:08 +0200 Subject: [PATCH 1/3] python3Packages.pytweening: migrate to pyproject --- pkgs/development/python-modules/pytweening/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pytweening/default.nix b/pkgs/development/python-modules/pytweening/default.nix index 074af0424899..cfbc8418367e 100644 --- a/pkgs/development/python-modules/pytweening/default.nix +++ b/pkgs/development/python-modules/pytweening/default.nix @@ -2,17 +2,20 @@ lib, buildPythonPackage, fetchPypi, + setuptools, }: buildPythonPackage rec { pname = "pytweening"; version = "1.2.0"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-JDMYt3NmmAZsXzYuxcK2Q07PQpfDyOfKqKv+avTKxxs="; }; + build-system = [ setuptools ]; + pythonImportsCheck = [ "pytweening" ]; checkPhase = '' python -m unittest tests.basicTests From 603250fdcd138807a6daa0a19eac53ec397f88c5 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Sat, 8 Aug 2026 20:15:59 +0200 Subject: [PATCH 2/3] python3Packages.pytweening: use unitestCheckHook --- .../python-modules/pytweening/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pytweening/default.nix b/pkgs/development/python-modules/pytweening/default.nix index cfbc8418367e..1c8591607332 100644 --- a/pkgs/development/python-modules/pytweening/default.nix +++ b/pkgs/development/python-modules/pytweening/default.nix @@ -3,6 +3,7 @@ buildPythonPackage, fetchPypi, setuptools, + unittestCheckHook, }: buildPythonPackage rec { pname = "pytweening"; @@ -17,9 +18,15 @@ buildPythonPackage rec { build-system = [ setuptools ]; pythonImportsCheck = [ "pytweening" ]; - checkPhase = '' - python -m unittest tests.basicTests - ''; + + unittestFlags = [ + "-s" + "tests" + "-p" + "basicTests.py" + ]; + + nativeCheckInputs = [ unittestCheckHook ]; meta = { description = "Set of tweening / easing functions implemented in Python"; From c228773f2c820a0b46c9588d4ebc7c39d6d6ca90 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Sat, 8 Aug 2026 20:21:41 +0200 Subject: [PATCH 3/3] python3Packages.pytweening: use finalAttrs, __structuredAttrs --- pkgs/development/python-modules/pytweening/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pytweening/default.nix b/pkgs/development/python-modules/pytweening/default.nix index 1c8591607332..b8da44f4838e 100644 --- a/pkgs/development/python-modules/pytweening/default.nix +++ b/pkgs/development/python-modules/pytweening/default.nix @@ -5,13 +5,15 @@ setuptools, unittestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pytweening"; version = "1.2.0"; + + __structuredAttrs = true; pyproject = true; src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; hash = "sha256-JDMYt3NmmAZsXzYuxcK2Q07PQpfDyOfKqKv+avTKxxs="; }; @@ -34,4 +36,4 @@ buildPythonPackage rec { license = lib.licenses.bsd3; maintainers = [ ]; }; -} +})