2017-10-29 12:54:56 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2019-01-14 13:46:25 +00:00
|
|
|
, fetchFromGitHub
|
2019-10-29 16:14:05 +00:00
|
|
|
, pytestCheckHook
|
2019-01-14 13:46:25 +00:00
|
|
|
, CommonMark
|
2017-10-29 12:54:56 +00:00
|
|
|
, docutils
|
2019-01-14 13:46:25 +00:00
|
|
|
, sphinx
|
2020-07-26 20:31:17 +00:00
|
|
|
, isPy3k
|
2017-10-29 12:54:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "recommonmark";
|
2021-10-12 04:56:27 +00:00
|
|
|
version = "0.7.1";
|
2017-10-29 12:54:56 +00:00
|
|
|
|
2019-01-14 13:46:25 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rtfd";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-10-12 04:56:27 +00:00
|
|
|
sha256 = "0kwm4smxbgq0c0ybkxfvlgrfb3gq9amdw94141jyykk9mmz38379";
|
2017-10-29 12:54:56 +00:00
|
|
|
};
|
|
|
|
|
2019-10-29 16:14:05 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2019-01-14 13:46:25 +00:00
|
|
|
propagatedBuildInputs = [ CommonMark docutils sphinx ];
|
2017-10-29 12:54:56 +00:00
|
|
|
|
2019-10-29 16:14:05 +00:00
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# https://github.com/readthedocs/recommonmark/issues/164
|
|
|
|
"test_lists"
|
|
|
|
"test_integration"
|
|
|
|
];
|
2017-10-29 12:54:56 +00:00
|
|
|
|
2020-08-14 20:57:10 +00:00
|
|
|
doCheck = !isPy3k; # Not yet compatible with latest Sphinx.
|
|
|
|
pythonImportsCheck = [ "recommonmark" ];
|
2020-07-26 20:31:17 +00:00
|
|
|
|
2017-10-29 12:54:56 +00:00
|
|
|
meta = {
|
|
|
|
description = "A docutils-compatibility bridge to CommonMark";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/rtfd/recommonmark";
|
2017-10-29 12:54:56 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
2019-01-14 13:46:25 +00:00
|
|
|
}
|