Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 sphinx, 5 fetchFromGitHub, 6 pandoc, 7}: 8 9buildPythonPackage rec { 10 pname = "sphinx-issues"; 11 version = "3.0.1"; 12 format = "setuptools"; 13 outputs = [ 14 "out" 15 "doc" 16 ]; 17 18 src = fetchFromGitHub { 19 owner = "sloria"; 20 repo = "sphinx-issues"; 21 rev = version; 22 sha256 = "1lns6isq9kwcw8z4jwgy927f7idx9srvri5adaa5zmypw5x47hha"; 23 }; 24 25 pythonImportsCheck = [ "sphinx_issues" ]; 26 27 propagatedBuildInputs = [ sphinx ]; 28 29 nativeBuildInputs = [ pandoc ]; 30 31 postBuild = '' 32 pandoc -f rst -t html --standalone < README.rst > README.html 33 ''; 34 35 postInstall = '' 36 mkdir -p $doc/share/doc/$name/html 37 cp README.html $doc/share/doc/$name/html 38 ''; 39 40 meta = with lib; { 41 homepage = "https://github.com/sloria/sphinx-issues"; 42 description = "Sphinx extension for linking to your project's issue tracker"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ kaction ]; 45 }; 46}