Files
nixpkgs/pkgs/development/python-modules/readme_renderer/default.nix
T

40 lines
748 B
Nix
Raw Normal View History

2017-09-07 10:01:06 +02:00
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, mock
, cmarkgfm
2017-09-07 10:01:06 +02:00
, bleach
, docutils
, future
2017-09-07 10:01:06 +02:00
, pygments
, six
}:
buildPythonPackage rec {
pname = "readme_renderer";
2018-06-12 18:47:06 +02:00
version = "21.0";
2017-09-07 10:01:06 +02:00
src = fetchPypi {
inherit pname version;
2018-06-12 18:47:06 +02:00
sha256 = "422404013378f0267ee128956021a47457db8eb487908b70b8a7de5fa935781a";
2017-09-07 10:01:06 +02:00
};
checkInputs = [ pytest mock ];
2017-09-07 10:01:06 +02:00
propagatedBuildInputs = [
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;
};
}