python3Packages.readme_renderer: update check part

This commit is contained in:
Fabian Affolter 2021-02-24 11:31:26 +01:00
parent 96997fc0b4
commit 62a76604dc
1 changed files with 20 additions and 17 deletions

View File

@ -1,14 +1,13 @@
{ lib { lib
, buildPythonPackage
, fetchPypi
, pytest
, mock
, cmarkgfm
, bleach , bleach
, buildPythonPackage
, cmarkgfm
, docutils , docutils
, fetchPypi
, future , future
, mock
, pygments , pygments
, six , pytestCheckHook
, pythonOlder , pythonOlder
}: }:
@ -22,21 +21,25 @@ buildPythonPackage rec {
sha256 = "sha256-kv1awr+Gd/MQ8zA6pLzludX58glKuYwp8TeR17gFo9s="; sha256 = "sha256-kv1awr+Gd/MQ8zA6pLzludX58glKuYwp8TeR17gFo9s=";
}; };
checkInputs = [ pytest mock ];
propagatedBuildInputs = [ propagatedBuildInputs = [
bleach cmarkgfm docutils future pygments six bleach
cmarkgfm
docutils
future
pygments
]; ];
checkPhase = '' checkInputs = [
# disable one failing test case mock
# fixtures test is failing for incorrect class name pytestCheckHook
py.test -k "not test_invalid_link and not fixtures" ];
'';
meta = { pythonImportsCheck = [ "readme_renderer" ];
description = "readme_renderer is a library for rendering readme descriptions for Warehouse";
meta = with lib; {
description = "Python library for rendering readme descriptions";
homepage = "https://github.com/pypa/readme_renderer"; homepage = "https://github.com/pypa/readme_renderer";
license = lib.licenses.asl20; license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
}; };
} }