nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 65 lines 1.6 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 cmarkgfm, 5 docutils, 6 fetchPypi, 7 fetchpatch2, 8 nh3, 9 pygments, 10 pytestCheckHook, 11 setuptools, 12}: 13 14buildPythonPackage rec { 15 pname = "readme-renderer"; 16 version = "44.0"; 17 pyproject = true; 18 19 src = fetchPypi { 20 pname = "readme_renderer"; 21 inherit version; 22 hash = "sha256-hxIDTqu/poBcrPFAK07rKnMCj3LRFm1vXLf5wEfF0eE="; 23 }; 24 25 patches = [ 26 # https://github.com/pypa/readme_renderer/pull/325 27 (fetchpatch2 { 28 name = "pygment-2_19-compatibility.patch"; 29 url = "https://github.com/pypa/readme_renderer/commit/04d5cfe76850192364eff344be7fe27730af8484.patch"; 30 hash = "sha256-QBU3zL3DB8gYYwtKrIC8+H8798pU9Sz3T9e/Q/dXksw="; 31 }) 32 (fetchpatch2 { 33 name = "docutils-0.22-compat.patch"; 34 url = "https://github.com/pypa/readme_renderer/commit/d047a29755a204afca8873a6ecf30e686ccf6a27.patch"; 35 hash = "sha256-GHTfRuOZr5c4mwu4s8K5IpvG1ZP1o/qd0U4H09BzhE8="; 36 }) 37 ]; 38 39 build-system = [ setuptools ]; 40 41 dependencies = [ 42 docutils 43 nh3 44 pygments 45 ]; 46 47 optional-dependencies.md = [ cmarkgfm ]; 48 49 nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.md; 50 51 disabledTests = [ 52 "test_rst_fixtures" 53 "test_rst_008.rst" 54 ]; 55 56 pythonImportsCheck = [ "readme_renderer" ]; 57 58 meta = { 59 description = "Python library for rendering readme descriptions"; 60 homepage = "https://github.com/pypa/readme_renderer"; 61 changelog = "https://github.com/pypa/readme_renderer/releases/tag/${version}"; 62 license = with lib.licenses; [ asl20 ]; 63 maintainers = with lib.maintainers; [ fab ]; 64 }; 65}