1{ lib
2, fetchPypi
3, buildPythonPackage
4, python
5, pythonAtLeast
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.6.0";
21
22 src = fetchPypi {
23 inherit pname version;
24 sha256 = "1zh7rd182l15swkbkm3ib0wgyn16xasdz2mzry8k4lwk6dagnm26";
25 };
26
27 # remove broken test
28 postPatch = ''
29 rm -vf src/ZODB/tests/testdocumentation.py
30 '';
31
32 # ZConfig 3.5.0 is not compatible with Python 3.8
33 disabled = pythonAtLeast "3.8";
34
35 propagatedBuildInputs = [
36 transaction
37 six
38 zope_interface
39 zodbpickle
40 zconfig
41 persistent
42 zc_lockfile
43 BTrees
44 ];
45
46 checkInputs = [
47 manuel
48 zope_testrunner
49 ];
50
51 checkPhase = ''
52 ${python.interpreter} -m zope.testrunner --test-path=src []
53 '';
54
55 meta = with lib; {
56 description = "Zope Object Database: object database and persistence";
57 homepage = "https://pypi.python.org/pypi/ZODB";
58 license = licenses.zpl21;
59 maintainers = with maintainers; [ goibhniu ];
60 };
61}