Files
nixpkgs/pkgs/development/python-modules/cloup/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

43 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
click,
setuptools-scm,
pythonOlder,
typing-extensions,
}:
buildPythonPackage rec {
pname = "cloup";
version = "3.0.8";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-+RwICnJRlt33T+q9YlAmb0Zul/wW3+Iadiz2vGvrPss=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ click ] ++ lib.optionals (pythonOlder "3.10") [ typing-extensions ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "cloup" ];
meta = {
homepage = "https://github.com/janLuke/cloup";
description = "Click extended with option groups, constraints, aliases, help themes";
changelog = "https://github.com/janluke/cloup/releases/tag/v${version}";
longDescription = ''
Enriches Click with option groups, constraints, command aliases, help sections for subcommands, themes for --help and other stuff.
'';
license = lib.licenses.bsd3;
maintainers = [ ];
};
}