{ lib, buildPythonPackage, fetchFromGitHub, setuptools, unittestCheckHook, }: buildPythonPackage rec { pname = "zope-hookable"; version = "8.0"; pyproject = true; src = fetchFromGitHub { owner = "zopefoundation"; repo = "zope.hookable"; tag = version; hash = "sha256-5ps/H9bL2oN9IHxXzpWw/9uMLhwV+OpQ26kXlsP4hgw="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "setuptools ==" "setuptools >=" ''; build-system = [ setuptools ]; pythonImportsCheck = [ "zope.hookable" ]; nativeCheckInputs = [ unittestCheckHook ]; unittestFlagsArray = [ "src/zope/hookable/tests" ]; pythonNamespaces = [ "zope" ]; meta = { description = "Supports the efficient creation of “hookable” objects"; homepage = "https://github.com/zopefoundation/zope.hookable"; changelog = "https://github.com/zopefoundation/zope.hookable/blob/${src.tag}/CHANGES.rst"; license = lib.licenses.zpl21; }; }