From f53ff1830271b8a459703b31e94e9c6fab231b0d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 15 Nov 2024 09:51:06 +0100 Subject: [PATCH] python312Packages.pytest-voluptuous: refactor --- .../python-modules/pytest-voluptuous/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pytest-voluptuous/default.nix b/pkgs/development/python-modules/pytest-voluptuous/default.nix index dd5f6afd2411..398e04ac64cf 100644 --- a/pkgs/development/python-modules/pytest-voluptuous/default.nix +++ b/pkgs/development/python-modules/pytest-voluptuous/default.nix @@ -5,6 +5,8 @@ pytest, pytestCheckHook, pythonOlder, + setuptools-scm, + setuptools, six, voluptuous, }: @@ -12,7 +14,7 @@ buildPythonPackage rec { pname = "pytest-voluptuous"; version = "1.2.0"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -23,9 +25,14 @@ buildPythonPackage rec { hash = "sha256-xdj4qCSSJQI9Rb1WyUYrAg1I5wQ5o6IJyIjJAafP/LY="; }; + build-system = [ + setuptools + setuptools-scm + ]; + buildInputs = [ pytest ]; - propagatedBuildInputs = [ voluptuous ]; + dependencies = [ voluptuous ]; nativeCheckInputs = [ pytestCheckHook