nixpkgs/pkgs/development/python-modules/zodb/default.nix
Christian Kauhaus 8024498459 ZODB: 3.5.1 -> 3.6.0
ZODB depends on ZConfig which is currently incompatible with Python 3.8.
Disabling ZODB on 3.8 as long as there has been no new ZConfig release.
2020-06-30 11:19:28 +02:00

61 lines
1.1 KiB
Nix

{ 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 ];
};
}