Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.7.1"; 14 15 src = fetchFromGitHub { 16 owner = "rtfd"; 17 repo = pname; 18 rev = version; 19 sha256 = "0kwm4smxbgq0c0ybkxfvlgrfb3gq9amdw94141jyykk9mmz38379"; 20 }; 21 22 nativeCheckInputs = [ pytestCheckHook ]; 23 propagatedBuildInputs = [ commonmark docutils sphinx ]; 24 25 dontUseSetuptoolsCheck = true; 26 27 disabledTests = [ 28 # https://github.com/readthedocs/recommonmark/issues/164 29 "test_lists" 30 "test_integration" 31 ]; 32 33 doCheck = !isPy3k; # Not yet compatible with latest Sphinx. 34 pythonImportsCheck = [ "recommonmark" ]; 35 36 meta = { 37 description = "A docutils-compatibility bridge to CommonMark"; 38 homepage = "https://github.com/rtfd/recommonmark"; 39 license = lib.licenses.mit; 40 maintainers = with lib.maintainers; [ fridh ]; 41 }; 42}