2022-03-05 16:20:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-09-30 11:47:45 +00:00
|
|
|
, setuptools
|
2022-03-05 16:20:37 +00:00
|
|
|
, docutils
|
|
|
|
, rich
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rich-rst";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "1.1.7";
|
2022-03-05 16:20:37 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wasi-master";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-s48hdJo1LIRXTf+PeSBa6y/AH1NLmnyAafFydJ+exDk=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
propagatedBuildInputs = [ docutils rich ];
|
|
|
|
|
|
|
|
# Module has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "rich_rst" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A beautiful reStructuredText renderer for rich";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|