3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #232080 from tm-drtina/python-argparse-dataclass

python3Packages.argparse-dataclass: init at 1.0.0
This commit is contained in:
Sandro 2023-06-05 23:16:32 +02:00 committed by GitHub
commit c3c08f7fd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 0 deletions

View file

@ -16139,6 +16139,12 @@
githubId = 3159881;
name = "Tobias Markus";
};
tm-drtina = {
email = "tm.drtina@gmail.com";
github = "tm-drtina";
githubId = 26902865;
name = "Tomas Drtina";
};
tmountain = {
email = "tinymountain@gmail.com";
github = "tmountain";

View file

@ -0,0 +1,24 @@
{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook }:
buildPythonPackage rec {
pname = "argparse-dataclass";
version = "1.0.0";
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 ];
};
}

View file

@ -610,6 +610,8 @@ self: super: with self; {
argparse-addons = callPackage ../development/python-modules/argparse-addons { };
argparse-dataclass = callPackage ../development/python-modules/argparse-dataclass { };
args = callPackage ../development/python-modules/args { };
aria2p = callPackage ../development/python-modules/aria2p { };