2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-03-15 16:39:30 +00:00
|
|
|
, fetchpatch
|
|
|
|
, python
|
2020-04-24 23:36:52 +00:00
|
|
|
, isPy27
|
|
|
|
, six
|
|
|
|
, zope_testing
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "manuel";
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "1.12.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-A5Wq32mR+SSseVz61Z2l3AYYcyqMxYrQ9HSWWrco9/Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
patches = lib.optionals (lib.versionAtLeast python.version "3.11") [
|
|
|
|
# https://github.com/benji-york/manuel/pull/32
|
|
|
|
# Applying conditionally until upstream arrives at some general solution.
|
|
|
|
(fetchpatch {
|
|
|
|
name = "TextTestResult-python311.patch";
|
|
|
|
url = "https://github.com/benji-york/manuel/commit/d9f12d03e39bb76e4bb3ba43ad51af6d3e9d45c0.diff";
|
|
|
|
hash = "sha256-k0vBtxEixoI1INiKtc7Js3Ai00iGAcCvCFI1ZIBRPvQ=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ six ];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ zope_testing ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A documentation builder";
|
|
|
|
homepage = "https://pypi.python.org/pypi/manuel";
|
|
|
|
license = licenses.zpl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|