23b612e36f
GitOrigin-RevId: ae5c332cbb5827f6b1f02572496b141021de335f
42 lines
895 B
Nix
42 lines
895 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "argparse-dataclass";
|
|
version = "2.0.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mivade";
|
|
repo = "argparse_dataclass";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-ASdP6LOEeTszyppYV6vRQX8BKOHYUimI36tMSZTQfTk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|