mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
49 lines
1.0 KiB
Nix
49 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, click
|
|
, setuptools-scm
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cloup";
|
|
version = "3.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-ur1L3P0nT4Z3nW0845ueoPbMWrPU7+NbpoQebW0DeJM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"cloup"
|
|
];
|
|
|
|
meta = with lib; {
|
|
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 = licenses.bsd3;
|
|
maintainers = with maintainers; [ friedelino ];
|
|
};
|
|
}
|