nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 38 lines 756 B view raw
1{ 2 lib, 3 python3, 4 fetchPypi, 5}: 6 7python3.pkgs.buildPythonPackage rec { 8 pname = "rst2html5"; 9 version = "2.0.1"; 10 pyproject = true; 11 12 src = fetchPypi { 13 inherit pname version; 14 hash = "sha256-MJmYyF+rAo8vywGizNyIbbCvxDmCYueVoC6pxNDzKuk="; 15 }; 16 17 build-system = with python3.pkgs; [ poetry-core ]; 18 19 dependencies = with python3.pkgs; [ 20 beautifulsoup4 21 docutils 22 genshi 23 pygments 24 ]; 25 26 # Tests are not shipped as PyPI releases 27 doCheck = false; 28 29 pythonImportsCheck = [ "rst2html5" ]; 30 31 meta = with lib; { 32 description = "Converts ReSTructuredText to (X)HTML5"; 33 homepage = "https://rst2html5.readthedocs.io/"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ ]; 36 mainProgram = "rst2html5"; 37 }; 38}