depot/third_party/nixpkgs/pkgs/development/python-modules/readme_renderer/default.nix
Default email 2ce89355c3 Project import generated by Copybara.
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
2020-06-15 17:56:04 +02:00

40 lines
823 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytest
, mock
, cmarkgfm
, bleach
, docutils
, future
, pygments
, six
}:
buildPythonPackage rec {
pname = "readme_renderer";
version = "26.0";
src = fetchPypi {
inherit pname version;
sha256 = "cbe9db71defedd2428a1589cdc545f9bd98e59297449f69d721ef8f1cfced68d";
};
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;
};
}