python311Packages.argparse-dataclass: refactor

This commit is contained in:
Fabian Affolter 2024-01-13 21:20:50 +01:00
parent b4a3c010f1
commit db7c6b0ada

View file

@ -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
];