about summary refs log tree commit diff
path: root/pkgs/development/python-modules/readme/default.nix
blob: 2e959bf268719948b29d2312eb4b8d7f5aba7394 (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
38
39
40
41
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, readme-renderer
}:

buildPythonPackage rec {
  pname = "readme";
  version = "0.7.1";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "32fbe1538a437da160fa4e4477270bfdcd8876e2e364d0d12898302644496231";
  };

  nativeCheckInputs = [
    pytest
  ];

  propagatedBuildInputs = [
    readme-renderer
  ];

  checkPhase = ''
    pytest
  '';

  # tests are not included with pypi release
  # package is not readme-renderer
  doCheck = false;

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

}