504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
43 lines
957 B
Nix
43 lines
957 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, commonmark
|
|
, docutils
|
|
, sphinx
|
|
, isPy3k
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "recommonmark";
|
|
version = "0.7.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rtfd";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0kwm4smxbgq0c0ybkxfvlgrfb3gq9amdw94141jyykk9mmz38379";
|
|
};
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
propagatedBuildInputs = [ commonmark docutils sphinx ];
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
disabledTests = [
|
|
# https://github.com/readthedocs/recommonmark/issues/164
|
|
"test_lists"
|
|
"test_integration"
|
|
];
|
|
|
|
doCheck = !isPy3k; # Not yet compatible with latest Sphinx.
|
|
pythonImportsCheck = [ "recommonmark" ];
|
|
|
|
meta = {
|
|
description = "A docutils-compatibility bridge to CommonMark";
|
|
homepage = "https://github.com/rtfd/recommonmark";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
};
|
|
}
|