depot/third_party/nixpkgs/pkgs/development/python-modules/readme-renderer/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

70 lines
1.3 KiB
Nix

{ lib
, bleach
, buildPythonPackage
, cmarkgfm
, docutils
, fetchPypi
, nh3
, pygments
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "readme-renderer";
version = "43.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "readme_renderer";
inherit version;
hash = "sha256-GBjdKBQIE1Ce7tjWJof3zU97rZDU21hgAcXcCdT94xE=";
};
build-system = [
setuptools
];
dependencies = [
docutils
nh3
pygments
];
optional-dependencies.md = [
cmarkgfm
];
nativeCheckInputs = [
pytestCheckHook
]
++ optional-dependencies.md;
disabledTests = [
# https://github.com/pypa/readme_renderer/issues/221
"test_GFM_"
# https://github.com/pypa/readme_renderer/issues/274
"test_CommonMark_008.md"
"test_rst_008.rst"
# Relies on old distutils behaviour removed by setuptools (TypeError: dist must be a Distribution instance)
"test_valid_rst"
"test_invalid_rst"
"test_malicious_rst"
"test_invalid_missing"
"test_invalid_empty"
];
pythonImportsCheck = [
"readme_renderer"
];
meta = with lib; {
description = "Python library for rendering readme descriptions";
homepage = "https://github.com/pypa/readme_renderer";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}