2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
, cmarkgfm
|
|
|
|
, bleach
|
|
|
|
, docutils
|
|
|
|
, future
|
|
|
|
, pygments
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "readme_renderer";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "26.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "cbe9db71defedd2428a1589cdc545f9bd98e59297449f69d721ef8f1cfced68d";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
bleach cmarkgfm docutils future pygments six
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
# disable one failing test case
|
|
|
|
# fixtures test is failing for incorrect class name
|
|
|
|
py.test -k "not test_invalid_link and not fixtures"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "readme_renderer is a library for rendering readme descriptions for Warehouse";
|
|
|
|
homepage = "https://github.com/pypa/readme_renderer";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|