2017-08-09 05:18:05 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
2018-12-03 11:16:13 +00:00
|
|
|
, python
|
2020-06-30 09:19:28 +00:00
|
|
|
, pythonAtLeast
|
2017-08-09 05:18:05 +00:00
|
|
|
, zope_testrunner
|
|
|
|
, transaction
|
|
|
|
, six
|
|
|
|
, zope_interface
|
|
|
|
, zodbpickle
|
|
|
|
, zconfig
|
|
|
|
, persistent
|
|
|
|
, zc_lockfile
|
|
|
|
, BTrees
|
|
|
|
, manuel
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ZODB";
|
2020-06-30 09:19:28 +00:00
|
|
|
version = "5.6.0";
|
2017-08-09 05:18:05 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-30 09:19:28 +00:00
|
|
|
sha256 = "1zh7rd182l15swkbkm3ib0wgyn16xasdz2mzry8k4lwk6dagnm26";
|
2017-08-09 05:18:05 +00:00
|
|
|
};
|
|
|
|
|
2018-12-03 11:16:13 +00:00
|
|
|
# remove broken test
|
|
|
|
postPatch = ''
|
|
|
|
rm -vf src/ZODB/tests/testdocumentation.py
|
|
|
|
'';
|
2017-10-29 11:16:03 +00:00
|
|
|
|
2020-06-30 09:19:28 +00:00
|
|
|
# ZConfig 3.5.0 is not compatible with Python 3.8
|
|
|
|
disabled = pythonAtLeast "3.8";
|
|
|
|
|
2017-08-09 05:18:05 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
transaction
|
|
|
|
six
|
|
|
|
zope_interface
|
|
|
|
zodbpickle
|
|
|
|
zconfig
|
|
|
|
persistent
|
|
|
|
zc_lockfile
|
|
|
|
BTrees
|
|
|
|
];
|
|
|
|
|
2018-09-13 11:34:28 +00:00
|
|
|
checkInputs = [
|
|
|
|
manuel
|
|
|
|
zope_testrunner
|
|
|
|
];
|
|
|
|
|
2018-12-03 11:16:13 +00:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m zope.testrunner --test-path=src []
|
|
|
|
'';
|
|
|
|
|
2017-08-09 05:18:05 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Zope Object Database: object database and persistence";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://pypi.python.org/pypi/ZODB";
|
2017-08-09 05:18:05 +00:00
|
|
|
license = licenses.zpl21;
|
|
|
|
maintainers = with maintainers; [ goibhniu ];
|
|
|
|
};
|
|
|
|
}
|