2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
docutils,
|
|
|
|
rich,
|
|
|
|
pytestCheckHook,
|
2022-03-05 16:20:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rich-rst";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.3.1";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wasi-master";
|
2024-05-15 15:35:15 +00:00
|
|
|
repo = "rich-rst";
|
2024-02-07 01:22:34 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-jbzGTEth5Qoc0ORFCS3sZMrGUpoQQOVsd+l3/zMWy20=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
|
|
|
docutils
|
|
|
|
rich
|
|
|
|
];
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "rich_rst" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Beautiful reStructuredText renderer for rich";
|
2022-03-05 16:20:37 +00:00
|
|
|
homepage = "https://github.com/wasi-master/rich-rst";
|
|
|
|
license = licenses.mit;
|
2023-01-20 10:41:00 +00:00
|
|
|
maintainers = with maintainers; [ joelkoen ];
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
}
|