aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/zodb/default.nix
blob: e8097461d3b190d84467ab8c63dabb461f9c9334 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{ stdenv
, fetchPypi
, buildPythonPackage
, python
, pythonAtLeast
, zope_testrunner
, transaction
, six
, zope_interface
, zodbpickle
, zconfig
, persistent
, zc_lockfile
, BTrees
, manuel
}:

buildPythonPackage rec {
    pname = "ZODB";
    version = "5.6.0";

    src = fetchPypi {
      inherit pname version;
      sha256 = "1zh7rd182l15swkbkm3ib0wgyn16xasdz2mzry8k4lwk6dagnm26";
    };

    # remove broken test
    postPatch = ''
      rm -vf src/ZODB/tests/testdocumentation.py
    '';

    # ZConfig 3.5.0 is not compatible with Python 3.8
    disabled = pythonAtLeast "3.8";

    propagatedBuildInputs = [
      transaction
      six
      zope_interface
      zodbpickle
      zconfig
      persistent
      zc_lockfile
      BTrees
    ];

    checkInputs = [
      manuel
      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";
      license = licenses.zpl21;
      maintainers = with maintainers; [ goibhniu ];
    };
}