2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
bleach,
|
|
|
|
buildPythonPackage,
|
|
|
|
cmarkgfm,
|
|
|
|
docutils,
|
|
|
|
fetchPypi,
|
|
|
|
nh3,
|
|
|
|
pygments,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-01-07 04:07:37 +00:00
|
|
|
pname = "readme-renderer";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "43.0";
|
|
|
|
pyproject = true;
|
2022-01-07 04:07:37 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-01-07 04:07:37 +00:00
|
|
|
pname = "readme_renderer";
|
|
|
|
inherit version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-GBjdKBQIE1Ce7tjWJof3zU97rZDU21hgAcXcCdT94xE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
dependencies = [
|
2021-03-09 03:18:52 +00:00
|
|
|
docutils
|
2024-04-21 15:54:59 +00:00
|
|
|
nh3
|
2021-03-09 03:18:52 +00:00
|
|
|
pygments
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
optional-dependencies.md = [ cmarkgfm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.md;
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
disabledTests = [
|
2024-05-15 15:35:15 +00:00
|
|
|
"test_rst_fixtures"
|
2023-03-15 16:39:30 +00:00
|
|
|
"test_rst_008.rst"
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "readme_renderer" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for rendering readme descriptions";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/pypa/readme_renderer";
|
2024-05-15 15:35:15 +00:00
|
|
|
changelog = "https://github.com/pypa/readme_renderer/releases/tag/${version}";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|