40 lines
823 B
Nix
40 lines
823 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest
|
|
, mock
|
|
, cmarkgfm
|
|
, bleach
|
|
, docutils
|
|
, future
|
|
, pygments
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "readme_renderer";
|
|
version = "28.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "6b7e5aa59210a40de72eb79931491eaf46fefca2952b9181268bd7c7c65c260a";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|