nixpkgs/pkgs/development/python-modules/recommonmark/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
926 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, CommonMark
, docutils
, sphinx
2020-07-26 20:31:17 +00:00
, isPy3k
}:
buildPythonPackage rec {
pname = "recommonmark";
version = "0.7.1";
src = fetchFromGitHub {
owner = "rtfd";
repo = pname;
rev = version;
sha256 = "0kwm4smxbgq0c0ybkxfvlgrfb3gq9amdw94141jyykk9mmz38379";
};
checkInputs = [ 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" ];
2020-07-26 20:31:17 +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 ];
};
}