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 { };