python.pkgs.zodb: remove obsolete patches and fix tests

This commit is contained in:
Robert Schütz
2018-12-03 12:16:13 +01:00
committed by Frederik Rietdijk
parent 73eb15fe6a
commit 79ced8c6da
3 changed files with 9 additions and 62 deletions

View File

@@ -1,6 +1,7 @@
{ stdenv
, fetchPypi
, buildPythonPackage
, python
, zope_testrunner
, transaction
, six
@@ -22,13 +23,10 @@ buildPythonPackage rec {
sha256 = "20155942fa326e89ad8544225bafd74237af332ce9d7c7105a22318fe8269666";
};
patches = [
./ZODB-5.3.0-fix-tests.patch # still needeed with 5.4.0
# Upstream patch to fix tests with persistent 4.4,
# cannot fetchpatch because only one hunk of the upstream commit applies.
# TODO remove on next release
./fix-tests-with-persistent-4.4.patch
];
# remove broken test
postPatch = ''
rm -vf src/ZODB/tests/testdocumentation.py
'';
propagatedBuildInputs = [
transaction
@@ -46,6 +44,10 @@ buildPythonPackage rec {
zope_testrunner
];
checkPhase = ''
${python.interpreter} -m zope.testrunner --test-path=src []
'';
meta = with stdenv.lib; {
description = "Zope Object Database: object database and persistence";
homepage = https://pypi.python.org/pypi/ZODB;