2017-10-29 13:54:56 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2019-01-14 14:46:25 +01:00
|
|
|
, fetchFromGitHub
|
2019-10-29 17:14:05 +01:00
|
|
|
, pytestCheckHook
|
2019-01-14 14:46:25 +01:00
|
|
|
, CommonMark
|
2017-10-29 13:54:56 +01:00
|
|
|
, docutils
|
2019-01-14 14:46:25 +01:00
|
|
|
, sphinx
|
2017-10-29 13:54:56 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "recommonmark";
|
2019-10-29 17:14:05 +01:00
|
|
|
version = "0.6.0";
|
2017-10-29 13:54:56 +01:00
|
|
|
|
2019-01-14 14:46:25 +01: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 17:14:05 +01:00
|
|
|
sha256 = "0m6qk17irka448vcz5b39yck1qsq90k98dmkx80mni0w00yq9ggd";
|
2017-10-29 13:54:56 +01:00
|
|
|
};
|
|
|
|
|
2019-10-29 17:14:05 +01:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2019-01-14 14:46:25 +01:00
|
|
|
propagatedBuildInputs = [ CommonMark docutils sphinx ];
|
2017-10-29 13:54:56 +01:00
|
|
|
|
2019-10-29 17:14:05 +01:00
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# https://github.com/readthedocs/recommonmark/issues/164
|
|
|
|
"test_lists"
|
|
|
|
"test_integration"
|
|
|
|
];
|
2017-10-29 13:54:56 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A docutils-compatibility bridge to CommonMark";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/rtfd/recommonmark";
|
2017-10-29 13:54:56 +01:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
|
|
};
|
2019-01-14 14:46:25 +01:00
|
|
|
}
|