1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 docutils,
7 rich,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "rich-rst";
13 version = "1.3.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "wasi-master";
18 repo = "rich-rst";
19 tag = "v${version}";
20 hash = "sha256-jbzGTEth5Qoc0ORFCS3sZMrGUpoQQOVsd+l3/zMWy20=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [
26 docutils
27 rich
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [ "rich_rst" ];
33
34 meta = with lib; {
35 description = "Beautiful reStructuredText renderer for rich";
36 homepage = "https://github.com/wasi-master/rich-rst";
37 license = licenses.mit;
38 maintainers = [ ];
39 };
40}