forked from mirrors/nixpkgs
54 lines
953 B
Nix
54 lines
953 B
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"
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|