2024-01-25 14:12:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
|
|
|
}:
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "argparse-dataclass";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "2.0.0";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mivade";
|
|
|
|
repo = "argparse_dataclass";
|
2024-01-25 14:12:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-ASdP6LOEeTszyppYV6vRQX8BKOHYUimI36tMSZTQfTk=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"argparse_dataclass"
|
|
|
|
];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Declarative CLIs with argparse and dataclasses";
|
|
|
|
homepage = "https://github.com/mivade/argparse_dataclass";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/mivade/argparse_dataclass/blob/${version}/CHANGELOG.md";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tm-drtina ];
|
|
|
|
};
|
|
|
|
}
|