From 346bb482c518c548fff0f7c313d614b4c3e7340c Mon Sep 17 00:00:00 2001 From: slashformotion Date: Sun, 9 Jun 2024 15:41:53 +0200 Subject: [PATCH 1/3] lib.maintainer-list: add slashformotion --- maintainers/maintainer-list.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index cdda0527b2b3..4b4ee22f661c 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -19199,6 +19199,11 @@ githubId = 106779009; name = "Slambert"; }; + slashformotion = { + github = "slashformotion"; + githubId = 45801817; + name = "slashformotion"; + }; slbtty = { email = "shenlebantongying@gmail.com"; github = "shenlebantongying"; From 7ca220b9f6dca9515a3944ed07aec0203ea69973 Mon Sep 17 00:00:00 2001 From: slashformotion Date: Sun, 9 Jun 2024 15:42:48 +0200 Subject: [PATCH 2/3] cli-ui: init at 0.17.2 --- .../python-modules/cli-ui/default.nix | 47 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 49 insertions(+) create mode 100644 pkgs/development/python-modules/cli-ui/default.nix diff --git a/pkgs/development/python-modules/cli-ui/default.nix b/pkgs/development/python-modules/cli-ui/default.nix new file mode 100644 index 000000000000..88f152a6fc59 --- /dev/null +++ b/pkgs/development/python-modules/cli-ui/default.nix @@ -0,0 +1,47 @@ +{ + lib, + python3Packages, + fetchPypi, + pytestCheckHook, + pythonRelaxDepsHook, + pythonOlder, + poetry-core, + colorama, + tabulate, + unidecode, +}: +python3Packages.buildPythonPackage rec { + pname = "cli-ui"; + version = "0.17.2"; + pyproject = true; + + disabled = pythonOlder "3.8.1"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-L2flDPR052rRYMPmYLutmL+LjfuNhHdl86Jht+E8Bfo="; + }; + + pythonRelaxDeps = [ "tabulate" ]; + + nativeBuildInputs = [ pythonRelaxDepsHook ]; + + build-system = [ poetry-core ]; + + dependencies = [ + colorama + tabulate + unidecode + ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "cli_ui" ]; + + meta = with lib; { + description = "Build Nice User Interfaces In The Terminal"; + homepage = "https://github.com/your-tools/python-cli-ui"; + license = licenses.bsd3; + maintainers = with maintainers; [ slashformotion ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4bcc8ea7d138..d1e473099d64 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2206,6 +2206,8 @@ self: super: with self; { clf = callPackage ../development/python-modules/clf { }; + cli-ui = callPackage ../development/python-modules/cli-ui { }; + clip = callPackage ../development/python-modules/clip { }; clip-anytorch = callPackage ../development/python-modules/clip-anytorch { }; From 1fc321ee73e3fa8d5da3f75a8ebe81761e2ceaf2 Mon Sep 17 00:00:00 2001 From: slashformotion Date: Sun, 9 Jun 2024 15:43:06 +0200 Subject: [PATCH 3/3] tbump: init at 6.11.0 --- pkgs/by-name/tb/tbump/package.nix | 41 +++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/tb/tbump/package.nix diff --git a/pkgs/by-name/tb/tbump/package.nix b/pkgs/by-name/tb/tbump/package.nix new file mode 100644 index 000000000000..2812dd2f05d0 --- /dev/null +++ b/pkgs/by-name/tb/tbump/package.nix @@ -0,0 +1,41 @@ +{ + lib, + fetchPypi, + python3Packages, +}: +python3Packages.buildPythonApplication rec { + pname = "tbump"; + version = "6.11.0"; + pyproject = true; + + disabled = python3Packages.pythonOlder "3.8"; + + src = fetchPypi { + inherit version; + pname = "tbump"; + hash = "sha256-OF5xDu3wqKb/lZzx6fPP0XyHNhcTL8DsX2Ka8MNVyHA="; + }; + + pythonRelaxDeps = [ "tomlkit" ]; + + nativeBuildInputs = with python3Packages; [ pythonRelaxDepsHook ]; + + build-system = with python3Packages; [ poetry-core ]; + + dependencies = with python3Packages; [ + docopt + schema + packaging + poetry-core + tomlkit + cli-ui + ]; + + meta = { + description = "Bump software releases"; + homepage = "https://github.com/your-tools/tbump"; + license = lib.licenses.bsd3; + mainProgram = "tbump"; + maintainers = with lib.maintainers; [ slashformotion ]; + }; +}