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
62
63
64
65
66
67
68
|
{
lib,
fetchFromGitHub,
buildPythonPackage,
python,
setuptools,
zope-testing,
zope-testrunner,
transaction,
zope-interface,
zodbpickle,
zconfig,
persistent,
zc-lockfile,
btrees,
manuel,
}:
buildPythonPackage rec {
pname = "zodb";
version = "6.1";
pyproject = true;
src = fetchFromGitHub {
owner = "zopefoundation";
repo = "zodb";
tag = version;
hash = "sha256-O6mu4RWi5qNcPyIgre5+bk4ZGZOZdG1vIdc8HqbfcaQ=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools ==" "setuptools >="
# remove broken test
rm -vf src/ZODB/tests/testdocumentation.py
'';
build-system = [ setuptools ];
dependencies = [
transaction
zope-interface
zodbpickle
zconfig
persistent
zc-lockfile
btrees
];
nativeCheckInputs = [
manuel
zope-testing
zope-testrunner
];
checkPhase = ''
${python.interpreter} -m zope.testrunner --test-path=src []
'';
meta = {
description = "Zope Object Database: object database and persistence";
homepage = "https://zodb-docs.readthedocs.io/";
changelog = "https://github.com/zopefoundation/ZODB/blob/${version}/CHANGES.rst";
license = lib.licenses.zpl21;
maintainers = [ ];
};
}
|