From e3607cabb8720ee0d1f6ab914e8a717c50be5cad Mon Sep 17 00:00:00 2001 From: Pyrox Date: Fri, 2 Aug 2024 15:27:17 -0400 Subject: [PATCH] python312Packages.mohawk: modernize --- pkgs/development/python-modules/mohawk/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/mohawk/default.nix b/pkgs/development/python-modules/mohawk/default.nix index 67440d86ab41..5054fcae7b79 100644 --- a/pkgs/development/python-modules/mohawk/default.nix +++ b/pkgs/development/python-modules/mohawk/default.nix @@ -5,16 +5,17 @@ fetchpatch2, pytestCheckHook, six, + setuptools, }: buildPythonPackage rec { pname = "mohawk"; version = "1.1.0"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; - sha256 = "08wppsv65yd0gdxy5zwq37yp6jmxakfz4a2yx5wwq2d222my786j"; + hash = "sha256-0qDjqxCiCcx56V4o8t1UvUpz/RmY/+J7e6D5Yra+lyM="; }; patches = [ @@ -26,7 +27,9 @@ buildPythonPackage rec { }) ]; - propagatedBuildInputs = [ six ]; + build-system = [ setuptools ]; + + dependencies = [ six ]; nativeCheckInputs = [ pytestCheckHook ];