2017-09-07 09:01:06 +01:00
|
|
|
{ lib
|
2021-02-24 10:31:26 +00:00
|
|
|
, bleach
|
2017-09-07 09:01:06 +01:00
|
|
|
, buildPythonPackage
|
2018-04-07 14:27:59 +01:00
|
|
|
, cmarkgfm
|
2017-09-07 09:01:06 +01:00
|
|
|
, docutils
|
2021-02-24 10:31:26 +00:00
|
|
|
, fetchPypi
|
2018-04-07 14:27:59 +01:00
|
|
|
, future
|
2021-02-24 10:31:26 +00:00
|
|
|
, mock
|
2017-09-07 09:01:06 +01:00
|
|
|
, pygments
|
2021-02-24 10:31:26 +00:00
|
|
|
, pytestCheckHook
|
2021-02-24 10:29:40 +00:00
|
|
|
, pythonOlder
|
2017-09-07 09:01:06 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "readme_renderer";
|
2021-02-24 10:29:40 +00:00
|
|
|
version = "29.0";
|
|
|
|
disabled = pythonOlder "3.6";
|
2017-09-07 09:01:06 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-24 10:29:40 +00:00
|
|
|
sha256 = "sha256-kv1awr+Gd/MQ8zA6pLzludX58glKuYwp8TeR17gFo9s=";
|
2017-09-07 09:01:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-02-24 10:31:26 +00:00
|
|
|
bleach
|
|
|
|
cmarkgfm
|
|
|
|
docutils
|
|
|
|
future
|
|
|
|
pygments
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
2017-09-07 09:01:06 +01:00
|
|
|
];
|
|
|
|
|
2021-02-24 10:31:26 +00:00
|
|
|
pythonImportsCheck = [ "readme_renderer" ];
|
2017-09-07 09:01:06 +01:00
|
|
|
|
2021-02-24 10:31:26 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for rendering readme descriptions";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pypa/readme_renderer";
|
2021-02-24 10:31:26 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2017-09-07 09:01:06 +01:00
|
|
|
};
|
2018-03-17 14:42:52 +00:00
|
|
|
}
|