depot/third_party/nixpkgs/pkgs/development/python-modules/readme_renderer/default.nix
Default email 78efc47b99 Project import generated by Copybara.
GitOrigin-RevId: 83cbad92d73216bb0d9187c56cce0b91f9121d5a
2020-12-07 07:45:13 +00:00

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;
};
}