2024-04-04 08:49:10 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
python3,
|
|
|
|
fetchPypi,
|
2024-04-04 08:48:31 +00:00
|
|
|
}:
|
2017-05-01 21:12:36 +00:00
|
|
|
|
2024-04-04 08:48:31 +00:00
|
|
|
python3.pkgs.buildPythonPackage rec {
|
2017-05-01 21:12:36 +00:00
|
|
|
pname = "rst2html5";
|
2024-04-04 08:48:31 +00:00
|
|
|
version = "2.0.1";
|
|
|
|
pyproject = true;
|
2017-05-01 21:12:36 +00:00
|
|
|
|
2023-05-25 16:03:52 +00:00
|
|
|
src = fetchPypi {
|
2021-07-31 21:48:08 +00:00
|
|
|
inherit pname version;
|
2024-04-04 08:48:31 +00:00
|
|
|
hash = "sha256-MJmYyF+rAo8vywGizNyIbbCvxDmCYueVoC6pxNDzKuk=";
|
2017-05-01 21:12:36 +00:00
|
|
|
};
|
|
|
|
|
2024-04-04 08:49:10 +00:00
|
|
|
build-system = with python3.pkgs; [ poetry-core ];
|
2024-04-04 08:48:31 +00:00
|
|
|
|
2024-04-04 08:48:52 +00:00
|
|
|
dependencies = with python3.pkgs; [
|
2021-07-31 21:48:08 +00:00
|
|
|
beautifulsoup4
|
|
|
|
docutils
|
|
|
|
genshi
|
|
|
|
pygments
|
|
|
|
];
|
2017-05-01 21:12:36 +00:00
|
|
|
|
2024-04-04 08:48:31 +00:00
|
|
|
# Tests are not shipped as PyPI releases
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-04-04 08:49:10 +00:00
|
|
|
pythonImportsCheck = [ "rst2html5" ];
|
2024-04-04 08:48:31 +00:00
|
|
|
|
2024-04-04 08:49:10 +00:00
|
|
|
meta = with lib; {
|
2017-05-01 21:12:36 +00:00
|
|
|
description = "Converts ReSTructuredText to (X)HTML5";
|
2024-04-04 08:48:31 +00:00
|
|
|
homepage = "https://rst2html5.readthedocs.io/";
|
2017-05-01 21:12:36 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2024-04-04 08:48:31 +00:00
|
|
|
mainProgram = "rst2html5";
|
2017-05-01 21:12:36 +00:00
|
|
|
};
|
|
|
|
}
|