2017-08-09 06:18:05 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchPypi
|
2020-01-24 21:19:41 +00:00
|
|
|
, fetchpatch
|
2017-08-09 06:18:05 +01:00
|
|
|
, buildPythonPackage
|
2018-12-03 11:16:13 +00:00
|
|
|
, python
|
2017-08-09 06:18:05 +01:00
|
|
|
, zope_testrunner
|
|
|
|
, transaction
|
|
|
|
, six
|
|
|
|
, zope_interface
|
|
|
|
, zodbpickle
|
|
|
|
, zconfig
|
|
|
|
, persistent
|
|
|
|
, zc_lockfile
|
|
|
|
, BTrees
|
|
|
|
, manuel
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ZODB";
|
2018-11-04 10:35:22 +00:00
|
|
|
version = "5.5.1";
|
2017-08-09 06:18:05 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:35:22 +00:00
|
|
|
sha256 = "20155942fa326e89ad8544225bafd74237af332ce9d7c7105a22318fe8269666";
|
2017-08-09 06:18:05 +01:00
|
|
|
};
|
|
|
|
|
2020-01-24 21:19:41 +00:00
|
|
|
patches = [
|
|
|
|
# Compatibility with transaction v3.0
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/zopefoundation/ZODB/commit/0adcc6877f690186c97cc5da7e13788946d5e0df.patch";
|
|
|
|
sha256 = "1zmbgm7r36nj5w7icpinp61fm81svh2wk213pzr3l0jxzr9i5qi4";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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
|
|
|
|
2017-08-09 06:18:05 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
transaction
|
|
|
|
six
|
|
|
|
zope_interface
|
|
|
|
zodbpickle
|
|
|
|
zconfig
|
|
|
|
persistent
|
|
|
|
zc_lockfile
|
|
|
|
BTrees
|
|
|
|
];
|
|
|
|
|
2018-09-13 12:34:28 +01: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 06:18:05 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Zope Object Database: object database and persistence";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pypi.python.org/pypi/ZODB";
|
2017-08-09 06:18:05 +01:00
|
|
|
license = licenses.zpl21;
|
|
|
|
maintainers = with maintainers; [ goibhniu ];
|
|
|
|
};
|
|
|
|
}
|