Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / sphinx-issues / default.nix
blob4ea94b7618908acbf24671f893979449098de780
1 { lib, buildPythonPackage, sphinx, fetchFromGitHub, pandoc }:
3 buildPythonPackage rec {
4   pname = "sphinx-issues";
5   version = "3.0.1";
6   outputs = [ "out" "doc" ];
8   src = fetchFromGitHub {
9     owner = "sloria";
10     repo = "sphinx-issues";
11     rev = version;
12     sha256 = "1lns6isq9kwcw8z4jwgy927f7idx9srvri5adaa5zmypw5x47hha";
13   };
15   pythonImportsCheck = [ "sphinx_issues" ];
17   propagatedBuildInputs = [ sphinx ];
19   nativeBuildInputs = [ pandoc ];
21   postBuild = ''
22     pandoc -f rst -t html --standalone < README.rst > README.html
23   '';
25   postInstall = ''
26     mkdir -p $doc/share/doc/$name/html
27     cp README.html $doc/share/doc/$name/html
28   '';
30   meta = with lib; {
31     homepage = "https://github.com/sloria/sphinx-issues";
32     description = "Sphinx extension for linking to your project's issue tracker.";
33     license = licenses.mit;
34     maintainers = with maintainers; [ kaction ];
35   };