nixpkgs-suyu/pkgs/misc/rich-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
809 B
Nix
Raw Normal View History

2022-05-04 16:23:18 +02:00
{ lib
, python3
}:
2022-03-01 07:48:55 +01:00
python3.pkgs.buildPythonApplication rec {
pname = "rich-cli";
2022-05-04 16:23:18 +02:00
version = "1.7.0";
format = "pyproject";
2022-03-01 07:48:55 +01:00
src = python3.pkgs.fetchPypi {
inherit pname version;
2022-05-04 16:23:18 +02:00
sha256 = "sha256-fporylec9H+9G2v8D0O32ek7OQs3YRSma1xOpakClqk=";
2022-03-01 07:48:55 +01:00
};
2022-05-04 16:23:18 +02:00
nativeBuildInputs = with python3.pkgs; [
poetry-core
];
2022-03-01 07:48:55 +01:00
propagatedBuildInputs = with python3.pkgs; [
rich
click
requests
textual
rich-rst
];
2022-05-04 16:23:18 +02:00
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'rich = "^12.3.0"' 'rich = "*"'
'';
pythonImportsCheck = [
"rich_cli"
];
2022-03-01 07:48:55 +01:00
meta = with lib; {
description = "Command Line Interface to Rich";
2022-05-04 16:23:18 +02:00
homepage = "https://github.com/Textualize/rich-cli";
2022-03-01 07:48:55 +01:00
license = licenses.mit;
maintainers = with maintainers; [ jyooru ];
};
}