Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytest 5, mock 6, cmarkgfm 7, bleach 8, docutils 9, future 10, pygments 11, six 12}: 13 14buildPythonPackage rec { 15 pname = "readme_renderer"; 16 version = "24.0"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "0br0562lnvj339f1nwz4nfl4ay49rw05xkqacigzf9wz4mdza5mv"; 21 }; 22 23 checkInputs = [ pytest mock ]; 24 25 propagatedBuildInputs = [ 26 bleach cmarkgfm docutils future pygments six 27 ]; 28 29 checkPhase = '' 30 # disable one failing test case 31 py.test -k "not test_invalid_link" 32 ''; 33 34 meta = { 35 description = "readme_renderer is a library for rendering readme descriptions for Warehouse"; 36 homepage = https://github.com/pypa/readme_renderer; 37 license = lib.licenses.asl20; 38 }; 39}