diff --git a/pkgs/development/python-modules/argparse-dataclass/default.nix b/pkgs/development/python-modules/argparse-dataclass/default.nix index 9310c6f71215..e0fbcd842b80 100644 --- a/pkgs/development/python-modules/argparse-dataclass/default.nix +++ b/pkgs/development/python-modules/argparse-dataclass/default.nix @@ -1,24 +1,41 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook }: +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +, setuptools +}: buildPythonPackage rec { pname = "argparse-dataclass"; - version = "1.0.0"; - format = "setuptools"; + version = "2.0.0"; + pyproject = true; + + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "mivade"; repo = "argparse_dataclass"; - rev = version; - sha256 = "6//XQKUnCH3ZtOL6M/EstMJ537nEmbuGQNqfelTluOs="; + rev = "refs/tags/${version}"; + hash = "sha256-ASdP6LOEeTszyppYV6vRQX8BKOHYUimI36tMSZTQfTk="; }; - checkInputs = [ pytestCheckHook ]; + nativeBuildInputs = [ + setuptools + ]; - pythonImportsCheck = [ "argparse_dataclass" ]; + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "argparse_dataclass" + ]; meta = with lib; { description = "Declarative CLIs with argparse and dataclasses"; homepage = "https://github.com/mivade/argparse_dataclass"; + changelog = "https://github.com/mivade/argparse_dataclass/blob/${version}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ tm-drtina ]; };