Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / sphinx-markdown-parser / default.nix
blob626e8dba585b2b429338888d321ee80962b4194a
1 { stdenv
2 , lib
3 , buildPythonPackage
4 , fetchFromGitHub
5 , sphinx
6 , markdown
7 , commonmark
8 , recommonmark
9 , pydash
10 , pyyaml
11 , unify
12 , yapf
13 , python
16 buildPythonPackage rec {
17   pname = "sphinx-markdown-parser";
18   version = "0.2.4";
20   # PyPi release does not include requirements.txt
21   src = fetchFromGitHub {
22     owner = "clayrisser";
23     repo = "sphinx-markdown-parser";
24     # Upstream maintainer currently does not tag releases
25     # https://github.com/clayrisser/sphinx-markdown-parser/issues/35
26     rev = "2fd54373770882d1fb544dc6524c581c82eedc9e";
27     sha256 = "0i0hhapmdmh83yx61lxi2h4bsmhnzddamz95844g2ghm132kw5mv";
28   };
30   propagatedBuildInputs = [ sphinx markdown commonmark pydash pyyaml unify yapf recommonmark ];
32   # Avoids running broken tests in test_markdown.py
33   checkPhase = ''
34     ${python.interpreter} -m unittest -v tests/test_basic.py tests/test_sphinx.py
35   '';
37   pythonImportsCheck = [ "sphinx_markdown_parser" ];
39   meta = with lib; {
40     broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
41     description = "Write markdown inside of docutils & sphinx projects";
42     homepage = "https://github.com/clayrisser/sphinx-markdown-parser";
43     license = licenses.mit;
44     maintainers = with maintainers; [ FlorianFranzen ];
45   };