1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, CommonMark
6, docutils
7, sphinx
8, isPy3k
9}:
10
11buildPythonPackage rec {
12 pname = "recommonmark";
13 version = "0.6.0";
14
15 # PyPI tarball is missing some test files: https://github.com/rtfd/recommonmark/pull/128
16 src = fetchFromGitHub {
17 owner = "rtfd";
18 repo = pname;
19 rev = version;
20 sha256 = "0m6qk17irka448vcz5b39yck1qsq90k98dmkx80mni0w00yq9ggd";
21 };
22
23 checkInputs = [ pytestCheckHook ];
24 propagatedBuildInputs = [ CommonMark docutils sphinx ];
25
26 dontUseSetuptoolsCheck = true;
27
28 disabledTests = [
29 # https://github.com/readthedocs/recommonmark/issues/164
30 "test_lists"
31 "test_integration"
32 ];
33
34 doCheck = !isPy3k; # Not yet compatible with latest Sphinx.
35 pythonImportsCheck = [ "recommonmark" ];
36
37 meta = {
38 description = "A docutils-compatibility bridge to CommonMark";
39 homepage = "https://github.com/rtfd/recommonmark";
40 license = lib.licenses.mit;
41 maintainers = with lib.maintainers; [ fridh ];
42 };
43}