Files
nixpkgs/pkgs/development/python-modules/cli-ui/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

47 lines
895 B
Nix

{
lib,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
poetry-core,
colorama,
tabulate,
unidecode,
buildPythonPackage,
}:
buildPythonPackage rec {
pname = "cli-ui";
version = "0.19.0";
pyproject = true;
disabled = pythonOlder "3.8.1";
src = fetchFromGitHub {
owner = "your-tools";
repo = "python-cli-ui";
tag = "v${version}";
hash = "sha256-BLc55LkVQwZ18V/fD/lBYw6jgchE8n0ijDTSr8/Jkdk=";
};
pythonRelaxDeps = [ "tabulate" ];
build-system = [ poetry-core ];
dependencies = [
colorama
tabulate
unidecode
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "cli_ui" ];
meta = {
description = "Build Nice User Interfaces In The Terminal";
homepage = "https://github.com/your-tools/python-cli-ui";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ slashformotion ];
};
}