depot/third_party/nixpkgs/pkgs/development/python-modules/rich-click/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

47 lines
954 B
Nix

{
lib,
buildPythonPackage,
click,
fetchFromGitHub,
pythonOlder,
rich,
setuptools,
typing-extensions,
}:
buildPythonPackage rec {
pname = "rich-click";
version = "1.8.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "ewels";
repo = "rich-click";
rev = "refs/tags/v${version}";
hash = "sha256-7Avg8HcN9q0EUOnkvuM0oIbwTUGAY2ksbX3SOVZtPOc=";
};
build-system = [ setuptools ];
dependencies = [
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 ];
mainProgram = "rich-click";
};
}