2023-07-15 17:15:38 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "argparse-dataclass";
|
|
|
|
version = "1.0.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mivade";
|
|
|
|
repo = "argparse_dataclass";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "6//XQKUnCH3ZtOL6M/EstMJ537nEmbuGQNqfelTluOs=";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "argparse_dataclass" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Declarative CLIs with argparse and dataclasses";
|
|
|
|
homepage = "https://github.com/mivade/argparse_dataclass";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tm-drtina ];
|
|
|
|
};
|
|
|
|
}
|