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