diff --git a/pkgs/development/python-modules/zodb/default.nix b/pkgs/development/python-modules/zodb/default.nix index 49baf1a63efa..3f296d981644 100644 --- a/pkgs/development/python-modules/zodb/default.nix +++ b/pkgs/development/python-modules/zodb/default.nix @@ -3,49 +3,60 @@ fetchFromGitHub, buildPythonPackage, python, + pythonAtLeast, + + # build-system setuptools, + + # dependencies + btrees, + persistent, + transaction, + zc-lockfile, + zconfig, + zodbpickle, + zope-interface, + + # tests + manuel, zope-testing, zope-testrunner, - transaction, - zope-interface, - zodbpickle, - zconfig, - persistent, - zc-lockfile, - btrees, - manuel, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "zodb"; - version = "6.1"; + version = "6.2"; pyproject = true; src = fetchFromGitHub { owner = "zopefoundation"; repo = "zodb"; - tag = version; - hash = "sha256-O6mu4RWi5qNcPyIgre5+bk4ZGZOZdG1vIdc8HqbfcaQ="; + tag = finalAttrs.version; + hash = "sha256-R6qf/9Sr70OsZzes+haT/J6RIz6Wlof/l6rQRl3snHI="; }; postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "setuptools ==" "setuptools >=" - # remove broken test rm -vf src/ZODB/tests/testdocumentation.py + '' + + lib.optionalString (pythonAtLeast "3.14") '' + # remove broken under python 3.14 + rm -vf src/ZODB/tests/testConnectionSavepoint.py + rm -vf src/ZODB/tests/testMVCCMappingStorage.py + rm -vf src/ZODB/tests/testFileStorage.py + rm -vf src/ZODB/tests/testblob.py ''; build-system = [ setuptools ]; dependencies = [ - transaction - zope-interface - zodbpickle - zconfig - persistent - zc-lockfile btrees + persistent + transaction + zc-lockfile + zconfig + zodbpickle + zope-interface ]; nativeCheckInputs = [ @@ -61,8 +72,9 @@ buildPythonPackage rec { meta = { description = "Zope Object Database: object database and persistence"; homepage = "https://zodb-docs.readthedocs.io/"; - changelog = "https://github.com/zopefoundation/ZODB/blob/${version}/CHANGES.rst"; + changelog = "https://github.com/zopefoundation/ZODB/blob/${finalAttrs.src.tag}/CHANGES.rst"; + downloadPage = "https://github.com/zopefoundation/ZODB"; license = lib.licenses.zpl21; maintainers = [ ]; }; -} +})