diff --git a/pkgs/development/python-modules/argparse-dataclass/default.nix b/pkgs/development/python-modules/argparse-dataclass/default.nix index b9101a4fc9f1..e0fbcd842b80 100644 --- a/pkgs/development/python-modules/argparse-dataclass/default.nix +++ b/pkgs/development/python-modules/argparse-dataclass/default.nix @@ -2,20 +2,28 @@ , buildPythonPackage , fetchFromGitHub , pytestCheckHook +, pythonOlder +, setuptools }: buildPythonPackage rec { pname = "argparse-dataclass"; version = "2.0.0"; - format = "setuptools"; + pyproject = true; + + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "mivade"; repo = "argparse_dataclass"; rev = "refs/tags/${version}"; - sha256 = "sha256-ASdP6LOEeTszyppYV6vRQX8BKOHYUimI36tMSZTQfTk="; + hash = "sha256-ASdP6LOEeTszyppYV6vRQX8BKOHYUimI36tMSZTQfTk="; }; + nativeBuildInputs = [ + setuptools + ]; + nativeCheckInputs = [ pytestCheckHook ];