nixpkgs-suyu/pkgs/development/python-modules/zodb/default.nix
Uli Baum b54677969b pythonPackages.zodb: fix tests
Tests failed after `persistent` was updated to 4.4.
Apply an upstream patch to fix them.
2018-09-13 13:35:34 +02:00

55 lines
1.1 KiB
Nix

{ stdenv
, fetchPypi
, buildPythonPackage
, zope_testrunner
, transaction
, six
, zope_interface
, zodbpickle
, zconfig
, persistent
, zc_lockfile
, BTrees
, manuel
}:
buildPythonPackage rec {
pname = "ZODB";
version = "5.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "0b306042f4f0d558a477d65c34b0dd6e7604c6e583f55dfda52befa2fa13e076";
};
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
];
propagatedBuildInputs = [
transaction
six
zope_interface
zodbpickle
zconfig
persistent
zc_lockfile
BTrees
];
checkInputs = [
manuel
zope_testrunner
];
meta = with stdenv.lib; {
description = "Zope Object Database: object database and persistence";
homepage = https://pypi.python.org/pypi/ZODB;
license = licenses.zpl21;
maintainers = with maintainers; [ goibhniu ];
};
}