1{ stdenv
2, fetchPypi
3, fetchpatch
4, buildPythonPackage
5, python
6, zope_testrunner
7, transaction
8, six
9, zope_interface
10, zodbpickle
11, zconfig
12, persistent
13, zc_lockfile
14, BTrees
15, manuel
16}:
17
18buildPythonPackage rec {
19 pname = "ZODB";
20 version = "5.5.1";
21
22 src = fetchPypi {
23 inherit pname version;
24 sha256 = "20155942fa326e89ad8544225bafd74237af332ce9d7c7105a22318fe8269666";
25 };
26
27 patches = [
28 # Compatibility with transaction v3.0
29 (fetchpatch {
30 url = "https://github.com/zopefoundation/ZODB/commit/0adcc6877f690186c97cc5da7e13788946d5e0df.patch";
31 sha256 = "1zmbgm7r36nj5w7icpinp61fm81svh2wk213pzr3l0jxzr9i5qi4";
32 })
33 ];
34
35 # remove broken test
36 postPatch = ''
37 rm -vf src/ZODB/tests/testdocumentation.py
38 '';
39
40 propagatedBuildInputs = [
41 transaction
42 six
43 zope_interface
44 zodbpickle
45 zconfig
46 persistent
47 zc_lockfile
48 BTrees
49 ];
50
51 checkInputs = [
52 manuel
53 zope_testrunner
54 ];
55
56 checkPhase = ''
57 ${python.interpreter} -m zope.testrunner --test-path=src []
58 '';
59
60 meta = with stdenv.lib; {
61 description = "Zope Object Database: object database and persistence";
62 homepage = https://pypi.python.org/pypi/ZODB;
63 license = licenses.zpl21;
64 maintainers = with maintainers; [ goibhniu ];
65 broken = true;
66 };
67}