2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
commonmark,
|
|
|
|
docutils,
|
|
|
|
sphinx,
|
|
|
|
isPy3k,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "recommonmark";
|
2021-10-14 00:43:12 +00:00
|
|
|
version = "0.7.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rtfd";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-10-14 00:43:12 +00:00
|
|
|
sha256 = "0kwm4smxbgq0c0ybkxfvlgrfb3gq9amdw94141jyykk9mmz38379";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
commonmark
|
|
|
|
docutils
|
|
|
|
sphinx
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# https://github.com/readthedocs/recommonmark/issues/164
|
|
|
|
"test_lists"
|
|
|
|
"test_integration"
|
|
|
|
];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
doCheck = !isPy3k; # Not yet compatible with latest Sphinx.
|
|
|
|
pythonImportsCheck = [ "recommonmark" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "A docutils-compatibility bridge to CommonMark";
|
|
|
|
homepage = "https://github.com/rtfd/recommonmark";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|