nixpkgs/pkgs/development/python-modules/readme/default.nix

38 lines
696 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, fetchPypi
, pytest
, six
, docutils
, pygments
, bleach
, html5lib
}:
buildPythonPackage rec {
pname = "readme";
2018-11-04 10:35:15 +00:00
version = "0.7.1";
src = fetchPypi {
inherit pname version;
2018-11-04 10:35:15 +00:00
sha256 = "32fbe1538a437da160fa4e4477270bfdcd8876e2e364d0d12898302644496231";
};
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;
};
}