1{
2 lib,
3 fetchPypi,
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 = "6.0";
21
22 src = fetchPypi {
23 pname = "ZODB";
24 inherit version;
25 hash = "sha256-5Rx5IRXF2q1OgGdXuvovdUwADCPmurw75eQHdf5Jtdw=";
26 };
27
28 # remove broken test
29 postPatch = ''
30 rm -vf src/ZODB/tests/testdocumentation.py
31 '';
32
33 propagatedBuildInputs = [
34 transaction
35 six
36 zope-interface
37 zodbpickle
38 zconfig
39 persistent
40 zc-lockfile
41 btrees
42 ];
43
44 nativeCheckInputs = [
45 manuel
46 zope-testrunner
47 ];
48
49 checkPhase = ''
50 ${python.interpreter} -m zope.testrunner --test-path=src []
51 '';
52
53 meta = with lib; {
54 description = "Zope Object Database: object database and persistence";
55 homepage = "https://zodb-docs.readthedocs.io/";
56 changelog = "https://github.com/zopefoundation/ZODB/blob/${version}/CHANGES.rst";
57 license = licenses.zpl21;
58 maintainers = [ ];
59 };
60}