Robert Schütz
2025-11-25 12:39:03 -08:00
parent 091fc4cfd4
commit fc31dda14c
@@ -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" ];