Files
nixpkgs/pkgs/development/python-modules/recommonmark/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

48 lines
928 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
commonmark,
docutils,
sphinx,
isPy3k,
}:
buildPythonPackage rec {
pname = "recommonmark";
version = "0.7.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "rtfd";
repo = pname;
rev = version;
sha256 = "0kwm4smxbgq0c0ybkxfvlgrfb3gq9amdw94141jyykk9mmz38379";
};
nativeCheckInputs = [ 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" ];
meta = {
description = "Docutils-compatibility bridge to CommonMark";
homepage = "https://github.com/rtfd/recommonmark";
license = lib.licenses.mit;
};
}