Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / readme-renderer / default.nix
blob13a8074a569072b2990144ab6f96099218039208
1 { lib
2 , bleach
3 , buildPythonPackage
4 , cmarkgfm
5 , docutils
6 , fetchPypi
7 , nh3
8 , pygments
9 , pytestCheckHook
10 , pythonOlder
11 , setuptools
14 buildPythonPackage rec {
15   pname = "readme-renderer";
16   version = "43.0";
17   pyproject = true;
19   disabled = pythonOlder "3.8";
21   src = fetchPypi {
22     pname = "readme_renderer";
23     inherit version;
24     hash = "sha256-GBjdKBQIE1Ce7tjWJof3zU97rZDU21hgAcXcCdT94xE=";
25   };
27   build-system = [
28     setuptools
29   ];
31   dependencies = [
32     docutils
33     nh3
34     pygments
35   ];
37   optional-dependencies.md = [
38     cmarkgfm
39   ];
41   nativeCheckInputs = [
42     pytestCheckHook
43   ]
44   ++ optional-dependencies.md;
46   disabledTests = [
47     # https://github.com/pypa/readme_renderer/issues/221
48     "test_GFM_"
49     # https://github.com/pypa/readme_renderer/issues/274
50     "test_CommonMark_008.md"
51     "test_rst_008.rst"
52     # Relies on old distutils behaviour removed by setuptools (TypeError: dist must be a Distribution instance)
53     "test_valid_rst"
54     "test_invalid_rst"
55     "test_malicious_rst"
56     "test_invalid_missing"
57     "test_invalid_empty"
58   ];
60   pythonImportsCheck = [
61     "readme_renderer"
62   ];
64   meta = with lib; {
65     description = "Python library for rendering readme descriptions";
66     homepage = "https://github.com/pypa/readme_renderer";
67     license = with licenses; [ asl20 ];
68     maintainers = with maintainers; [ fab ];
69   };