2017-09-07 10:01:06 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
2018-04-07 15:27:59 +02:00
|
|
|
, mock
|
|
|
|
, cmarkgfm
|
2017-09-07 10:01:06 +02:00
|
|
|
, bleach
|
|
|
|
, docutils
|
2018-04-07 15:27:59 +02:00
|
|
|
, future
|
2017-09-07 10:01:06 +02:00
|
|
|
, pygments
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "readme_renderer";
|
2018-11-18 17:15:37 +01:00
|
|
|
version = "24.0";
|
2017-09-07 10:01:06 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-18 17:15:37 +01:00
|
|
|
sha256 = "0br0562lnvj339f1nwz4nfl4ay49rw05xkqacigzf9wz4mdza5mv";
|
2017-09-07 10:01:06 +02:00
|
|
|
};
|
|
|
|
|
2018-04-07 15:27:59 +02:00
|
|
|
checkInputs = [ pytest mock ];
|
2017-09-07 10:01:06 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2018-04-07 15:27:59 +02:00
|
|
|
bleach cmarkgfm docutils future pygments six
|
2017-09-07 10:01:06 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2018-09-10 17:19:05 +02:00
|
|
|
# disable one failing test case
|
|
|
|
py.test -k "not test_invalid_link"
|
2017-09-07 10:01:06 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "readme_renderer is a library for rendering readme descriptions for Warehouse";
|
|
|
|
homepage = https://github.com/pypa/readme_renderer;
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
};
|
2018-03-17 15:42:52 +01:00
|
|
|
}
|