about summary refs log tree commit diff
path: root/pkgs/development/python-modules/readme/default.nix
blob: 4bc7e1cc233a33b3afcae98991686f2186817575 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ stdenv
, buildPythonPackage
, fetchPypi
, pytest
, six
, docutils
, pygments
, bleach
, html5lib
}:

buildPythonPackage rec {
  pname = "readme";
  version = "0.6.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "08j2w67nilczn1i5r7h22vag9673i6vnfhyq2rv27r1bdmi5a30m";
  };

  buildInputs = [ pytest ];
  propagatedBuildInputs = [ six docutils pygments bleach html5lib ];

  checkPhase = ''
    py.test
  '';

  # Tests fail, possibly broken.
  doCheck = false;

  meta = with stdenv.lib; {
    description = "Readme is a library for rendering readme descriptions for Warehouse";
    homepage = "https://github.com/pypa/readme";
    license = licenses.asl20;
  };

}