1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, pytest
5, six
6, docutils
7, pygments
8, bleach
9, html5lib
10}:
11
12buildPythonPackage rec {
13 pname = "readme";
14 version = "0.7.1";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "32fbe1538a437da160fa4e4477270bfdcd8876e2e364d0d12898302644496231";
19 };
20
21 buildInputs = [ pytest ];
22 propagatedBuildInputs = [ six docutils pygments bleach html5lib ];
23
24 checkPhase = ''
25 py.test
26 '';
27
28 # Tests fail, possibly broken.
29 doCheck = false;
30
31 meta = with stdenv.lib; {
32 description = "Readme is a library for rendering readme descriptions for Warehouse";
33 homepage = "https://github.com/pypa/readme";
34 license = licenses.asl20;
35 };
36
37}