depot/third_party/nixpkgs/pkgs/development/python-modules/readme_renderer/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

58 lines
1 KiB
Nix

{ lib
, bleach
, buildPythonPackage
, cmarkgfm
, docutils
, fetchPypi
, mock
, pygments
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "readme-renderer";
version = "32.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
pname = "readme_renderer";
inherit version;
sha256 = "sha256-tRK+r6Z5gmDH1a8+Gx8Jfli/zZpXXafE3dXgN0kKW4U=";
};
propagatedBuildInputs = [
bleach
cmarkgfm
docutils
pygments
];
checkInputs = [
mock
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace "cmarkgfm>=0.5.0,<0.7.0" "cmarkgfm>=0.5.0,<1"
'';
disabledTests = [
# https://github.com/pypa/readme_renderer/issues/221
"test_GFM_"
];
pythonImportsCheck = [
"readme_renderer"
];
meta = with lib; {
description = "Python library for rendering readme descriptions";
homepage = "https://github.com/pypa/readme_renderer";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}