From fc31dda14c1f0b5850da9dac14e54a031a8663bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 25 Oct 2025 19:06:27 -0700 Subject: [PATCH] python3Packages.zope-location: 5.0 -> 6.0 Diff: https://github.com/zopefoundation/zope.location/compare/5.0...6.0 Changelog: https://github.com/zopefoundation/zope.location/blob/6.0/CHANGES.rst --- .../python-modules/zope-location/default.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/zope-location/default.nix b/pkgs/development/python-modules/zope-location/default.nix index 8b4ff8bf7e88..c4d05a2e06ce 100644 --- a/pkgs/development/python-modules/zope-location/default.nix +++ b/pkgs/development/python-modules/zope-location/default.nix @@ -8,21 +8,27 @@ zope-schema, zope-component, zope-configuration, + zope-copy, unittestCheckHook, }: buildPythonPackage rec { pname = "zope-location"; - version = "5.0"; + version = "6.0"; pyproject = true; src = fetchFromGitHub { owner = "zopefoundation"; repo = "zope.location"; tag = version; - hash = "sha256-C8tQ4qqzkQx+iU+Pm3iCEchtqOZT/qcYFSzJWzqlhnI="; + hash = "sha256-s7HZda+U87P62elX/KbDp2o9zAplgFVmnedDI/uq2sk="; }; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "setuptools ==" "setuptools >=" + ''; + build-system = [ setuptools ]; dependencies = [ @@ -34,18 +40,13 @@ buildPythonPackage rec { optional-dependencies = { zcml = [ zope-configuration ]; component = [ zope-component ]; + copy = [ zope-copy ]; }; pythonImportsCheck = [ "zope.location" ]; nativeCheckInputs = [ unittestCheckHook ]; - # prevent cirtular import - preCheck = '' - rm src/zope/location/tests/test_configure.py - rm src/zope/location/tests/test_pickling.py - ''; - unittestFlagsArray = [ "src/zope/location/tests" ]; pythonNamespaces = [ "zope" ];