diff --git a/pkgs/development/python-modules/click-configfile/default.nix b/pkgs/development/python-modules/click-configfile/default.nix index f116862157d3..ab9d11277324 100644 --- a/pkgs/development/python-modules/click-configfile/default.nix +++ b/pkgs/development/python-modules/click-configfile/default.nix @@ -2,22 +2,28 @@ lib, buildPythonPackage, fetchPypi, + setuptools, click, six, pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "click-configfile"; version = "0.2.3"; - format = "setuptools"; + pyproject = true; + + __structuredAttrs = true; src = fetchPypi { - inherit pname version; + pname = "click-configfile"; + inherit (finalAttrs) version; hash = "sha256-lb7sE77pUOmPQ8gdzavvT2RAkVWepmKY+drfWTUdkNE="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ click six ]; @@ -26,7 +32,7 @@ buildPythonPackage rec { postPatch = '' substituteInPlace setup.py \ - --replace "install_requires=install_requires," 'install_requires=["click >= 6.6", "six >= 1.10"],' + --replace-fail "install_requires=install_requires," 'install_requires=["click >= 6.6", "six >= 1.10"],' ''; pythonImportsCheck = [ "click_configfile" ]; @@ -42,4 +48,4 @@ buildPythonPackage rec { license = lib.licenses.bsd3; maintainers = [ ]; }; -} +})