python312Packages.zope-hookable: 6.0 -> 7.0

Changelog: https://github.com/zopefoundation/zope.hookable/blob/7.0/CHANGES.rst
This commit is contained in:
natsukium
2024-12-30 17:02:47 +09:00
parent 04622d274f
commit b23cbd820f

View File

@@ -1,29 +1,42 @@
{ {
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchPypi, fetchFromGitHub,
setuptools, setuptools,
zope-testing, unittestCheckHook,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "zope-hookable"; pname = "zope-hookable";
version = "6.0"; version = "7.0";
pyproject = true; pyproject = true;
src = fetchPypi { src = fetchFromGitHub {
pname = "zope.hookable"; owner = "zopefoundation";
inherit version; repo = "zope.hookable";
hash = "sha256-FmiZPUCnz9yGeEPdVyWSnn+DpbDBlccJrx2u+CdPQ8s="; tag = version;
hash = "sha256-qJJc646VSdNKors6Au4UAGvm7seFbvjEfpdqf//vJNE=";
}; };
nativeBuildInputs = [ setuptools ]; postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools<74" "setuptools"
'';
nativeCheckInputs = [ zope-testing ]; build-system = [ setuptools ];
pythonImportsCheck = [ "zope.hookable" ];
nativeCheckInputs = [ unittestCheckHook ];
unittestFlagsArray = [ "src/zope/hookable/tests" ];
pythonNamespaces = [ "zope" ];
meta = with lib; { meta = with lib; {
description = "Supports the efficient creation of hookable objects"; description = "Supports the efficient creation of hookable objects";
homepage = "https://github.com/zopefoundation/zope.hookable"; homepage = "https://github.com/zopefoundation/zope.hookable";
changelog = "https://github.com/zopefoundation/zope.hookable/blob/${src.tag}/CHANGES.rst";
license = licenses.zpl21; license = licenses.zpl21;
}; };
} }