nixpkgs/pkgs/by-name/rs/rst2html5/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
771 B
Nix
Raw Normal View History

2024-04-04 08:49:10 +00:00
{
lib,
python3,
fetchPypi,
2024-04-04 08:48:31 +00:00
}:
2024-04-04 08:48:31 +00:00
python3.pkgs.buildPythonPackage rec {
pname = "rst2html5";
2024-04-04 08:48:31 +00:00
version = "2.0.1";
pyproject = true;
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=";
};
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
];
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; {
description = "Converts ReSTructuredText to (X)HTML5";
2024-04-04 08:48:31 +00:00
homepage = "https://rst2html5.readthedocs.io/";
license = licenses.mit;
maintainers = with maintainers; [ AndersonTorres ];
2024-04-04 08:48:31 +00:00
mainProgram = "rst2html5";
};
}