depot/third_party/nixpkgs/pkgs/development/python-modules/rich-click/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

45 lines
886 B
Nix

{ lib
, buildPythonPackage
, click
, fetchFromGitHub
, pythonOlder
, rich
, typer
, typing-extensions
}:
buildPythonPackage rec {
pname = "rich-click";
version = "1.7.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "ewels";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-Fmdxs7yeaHe8++LSQGuYK3Qwc0CdPvV9UCSXa09Djt4=";
};
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";
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 ];
};
}