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 = "recommonmark";
20 rev = version;
21 sha256 = "0kwm4smxbgq0c0ybkxfvlgrfb3gq9amdw94141jyykk9mmz38379";
22 };
23
24 nativeCheckInputs = [ pytestCheckHook ];
25 propagatedBuildInputs = [
26 commonmark
27 docutils
28 sphinx
29 ];
30
31 disabledTests = [
32 # https://github.com/readthedocs/recommonmark/issues/164
33 "test_lists"
34 "test_integration"
35 ];
36
37 doCheck = !isPy3k; # Not yet compatible with latest Sphinx.
38 pythonImportsCheck = [ "recommonmark" ];
39
40 meta = {
41 description = "Docutils-compatibility bridge to CommonMark";
42 homepage = "https://github.com/rtfd/recommonmark";
43 license = lib.licenses.mit;
44 };
45}