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