2018-10-26 17:10:48 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
2019-07-16 22:29:24 +01:00
|
|
|
, readme_renderer
|
2018-10-26 17:10:48 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "readme";
|
2018-11-04 10:35:15 +00:00
|
|
|
version = "0.7.1";
|
2018-10-26 17:10:48 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:15 +00:00
|
|
|
sha256 = "32fbe1538a437da160fa4e4477270bfdcd8876e2e364d0d12898302644496231";
|
2018-10-26 17:10:48 +01:00
|
|
|
};
|
|
|
|
|
2019-07-16 22:29:24 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
readme_renderer
|
|
|
|
];
|
2018-10-26 17:10:48 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
2019-07-16 22:29:24 +01:00
|
|
|
pytest
|
2018-10-26 17:10:48 +01:00
|
|
|
'';
|
|
|
|
|
2019-07-16 22:29:24 +01:00
|
|
|
# tests are not included with pypi release
|
|
|
|
# package is not readme_renderer
|
2018-10-26 17:10:48 +01:00
|
|
|
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;
|
2019-07-16 22:29:24 +01:00
|
|
|
maintainers = [ maintainers.costrouc ];
|
2018-10-26 17:10:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|