From 61d68ad177f0d5726d9a6229bb2fe3679543a1aa Mon Sep 17 00:00:00 2001 From: Tomas Drtina Date: Sat, 13 May 2023 05:31:02 +0200 Subject: [PATCH 1/2] maintainers: add tm-drtina --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 047fe343043f..70376f2db1a5 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -15903,6 +15903,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"; From c491427c43641bed9f4d810e8de615cd072b37e4 Mon Sep 17 00:00:00 2001 From: Tomas Drtina Date: Sat, 13 May 2023 05:47:42 +0200 Subject: [PATCH 2/2] python3Packages.argparse-dataclass: init at 1.0.0 --- .../argparse-dataclass/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/python-modules/argparse-dataclass/default.nix diff --git a/pkgs/development/python-modules/argparse-dataclass/default.nix b/pkgs/development/python-modules/argparse-dataclass/default.nix new file mode 100644 index 000000000000..993242e4bd80 --- /dev/null +++ b/pkgs/development/python-modules/argparse-dataclass/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8d39f1c0558a..315ea897203d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -612,6 +612,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 { };