nixpkgs/pkgs/by-name/rs/rst2html5/package.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

27 lines
606 B
Nix

{ lib, python3Packages, fetchPypi }:
python3Packages.buildPythonPackage rec {
pname = "rst2html5";
version = "2.0";
src = fetchPypi {
inherit pname version;
hash = "sha256-Ejjja/fm6wXTf9YtjCYZsNDB8X5oAtyPoUIsYFDuZfc=";
};
buildInputs = with python3Packages; [
beautifulsoup4
docutils
genshi
pygments
];
meta = with lib;{
homepage = "https://rst2html5.readthedocs.io/en/latest/";
description = "Converts ReSTructuredText to (X)HTML5";
mainProgram = "rst2html5";
license = licenses.mit;
maintainers = with maintainers; [ AndersonTorres ];
};
}