mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
52 lines
978 B
Nix
52 lines
978 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, click
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, rich
|
|
, setuptools
|
|
, typer
|
|
, typing-extensions
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "rich-click";
|
|
version = "1.7.4";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ewels";
|
|
repo = "rich-click";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-eqpxNurMHn4ClD0KjTQ7Yfny61tcYBRKlW74axjLI8A=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
rich
|
|
typing-extensions
|
|
];
|
|
|
|
# Module has no test
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"rich_click"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Module to format click help output nicely with rich";
|
|
mainProgram = "rich-click";
|
|
homepage = "https://github.com/ewels/rich-click";
|
|
changelog = "https://github.com/ewels/rich-click/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|