2017-09-07 09:01:06 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
2018-04-07 14:27:59 +01:00
|
|
|
, mock
|
|
|
|
, cmarkgfm
|
2017-09-07 09:01:06 +01:00
|
|
|
, bleach
|
|
|
|
, docutils
|
2018-04-07 14:27:59 +01:00
|
|
|
, future
|
2017-09-07 09:01:06 +01:00
|
|
|
, pygments
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "readme_renderer";
|
2020-11-29 14:04:41 +00:00
|
|
|
version = "28.0";
|
2017-09-07 09:01:06 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:41 +00:00
|
|
|
sha256 = "6b7e5aa59210a40de72eb79931491eaf46fefca2952b9181268bd7c7c65c260a";
|
2017-09-07 09:01:06 +01:00
|
|
|
};
|
|
|
|
|
2018-04-07 14:27:59 +01:00
|
|
|
checkInputs = [ pytest mock ];
|
2017-09-07 09:01:06 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2018-04-07 14:27:59 +01:00
|
|
|
bleach cmarkgfm docutils future pygments six
|
2017-09-07 09:01:06 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2018-09-10 16:19:05 +01:00
|
|
|
# disable one failing test case
|
2019-12-22 19:28:21 +00:00
|
|
|
# fixtures test is failing for incorrect class name
|
|
|
|
py.test -k "not test_invalid_link and not fixtures"
|
2017-09-07 09:01:06 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "readme_renderer is a library for rendering readme descriptions for Warehouse";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pypa/readme_renderer";
|
2017-09-07 09:01:06 +01:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
};
|
2018-03-17 14:42:52 +00:00
|
|
|
}
|