mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
41 lines
1,014 B
Nix
41 lines
1,014 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
fetchpatch,
|
|
python,
|
|
isPy27,
|
|
six,
|
|
zope-testing,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "manuel";
|
|
version = "1.13.0";
|
|
format = "setuptools";
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-XWMSDej6bZJ3gLaa4oqj6dFmmxCvPTJ4Xz+6EaW+iFo=";
|
|
};
|
|
|
|
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=";
|
|
})
|
|
];
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
nativeCheckInputs = [ zope-testing ];
|
|
|
|
meta = {
|
|
description = "Documentation builder";
|
|
homepage = "https://pypi.python.org/pypi/manuel";
|
|
license = lib.licenses.zpl20;
|
|
};
|
|
}
|