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 , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pytestCheckHook , pytestCheckHook
, pythonOlder
, setuptools
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "argparse-dataclass"; pname = "argparse-dataclass";
version = "2.0.0"; version = "2.0.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mivade"; owner = "mivade";
repo = "argparse_dataclass"; repo = "argparse_dataclass";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
sha256 = "sha256-ASdP6LOEeTszyppYV6vRQX8BKOHYUimI36tMSZTQfTk="; hash = "sha256-ASdP6LOEeTszyppYV6vRQX8BKOHYUimI36tMSZTQfTk=";
}; };
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [ nativeCheckInputs = [
pytestCheckHook pytestCheckHook
]; ];