1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, setuptools
5, docutils
6, rich
7}:
8
9buildPythonPackage rec {
10 pname = "rich-rst";
11 version = "1.1.7";
12 format = "pyproject";
13
14 src = fetchFromGitHub {
15 owner = "wasi-master";
16 repo = pname;
17 rev = "v${version}";
18 hash = "sha256-s48hdJo1LIRXTf+PeSBa6y/AH1NLmnyAafFydJ+exDk=";
19 };
20
21 nativeBuildInputs = [
22 setuptools
23 ];
24
25 propagatedBuildInputs = [ docutils rich ];
26
27 # Module has no tests
28 doCheck = false;
29
30 pythonImportsCheck = [ "rich_rst" ];
31
32 meta = with lib; {
33 description = "A beautiful reStructuredText renderer for rich";
34 homepage = "https://github.com/wasi-master/rich-rst";
35 license = licenses.mit;
36 maintainers = with maintainers; [ joelkoen ];
37 };
38}