at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 fetchpatch, 6 python, 7 isPy27, 8 six, 9 zope-testing, 10}: 11 12buildPythonPackage rec { 13 pname = "manuel"; 14 version = "1.13.0"; 15 format = "setuptools"; 16 disabled = isPy27; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-XWMSDej6bZJ3gLaa4oqj6dFmmxCvPTJ4Xz+6EaW+iFo="; 21 }; 22 23 patches = lib.optionals (lib.versionAtLeast python.version "3.11") [ 24 # https://github.com/benji-york/manuel/pull/32 25 # Applying conditionally until upstream arrives at some general solution. 26 (fetchpatch { 27 name = "TextTestResult-python311.patch"; 28 url = "https://github.com/benji-york/manuel/commit/d9f12d03e39bb76e4bb3ba43ad51af6d3e9d45c0.diff"; 29 hash = "sha256-k0vBtxEixoI1INiKtc7Js3Ai00iGAcCvCFI1ZIBRPvQ="; 30 }) 31 ]; 32 33 propagatedBuildInputs = [ six ]; 34 nativeCheckInputs = [ zope-testing ]; 35 36 meta = with lib; { 37 description = "Documentation builder"; 38 homepage = "https://pypi.python.org/pypi/manuel"; 39 license = licenses.zpl20; 40 }; 41}