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
|
2017-10-29 12:54:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "recommonmark";
|
2019-10-29 16:14:05 +00:00
|
|
|
version = "0.6.0";
|
2017-10-29 12:54:56 +00:00
|
|
|
|
2019-01-14 13:46:25 +00:00
|
|
|
# PyPI tarball is missing some test files: https://github.com/rtfd/recommonmark/pull/128
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rtfd";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-10-29 16:14:05 +00:00
|
|
|
sha256 = "0m6qk17irka448vcz5b39yck1qsq90k98dmkx80mni0w00yq9ggd";
|
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
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A docutils-compatibility bridge to CommonMark";
|
|
|
|
homepage = https://github.com/rtfd/recommonmark;
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
2019-01-14 13:46:25 +00:00
|
|
|
}
|