1{ lib
2, fetchPypi
3, buildPythonPackage
4, persistent
5, zope_interface
6, transaction
7, zope_testrunner
8, python
9}:
10
11buildPythonPackage rec {
12 pname = "BTrees";
13 version = "4.9.2";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "d33323655924192c4ac998d9ee3002e787915d19c1e17a6baf47c9a63d9556e3";
18 };
19
20 propagatedBuildInputs = [
21 persistent
22 zope_interface
23 ];
24
25 checkInputs = [
26 transaction
27 zope_testrunner
28 ];
29
30 checkPhase = ''
31 runHook preCheck
32 ${python.interpreter} -m zope.testrunner --test-path=src --auto-color --auto-progress
33 runHook postCheck
34 '';
35
36 pythonImportsCheck = [
37 "BTrees.OOBTree"
38 "BTrees.IOBTree"
39 "BTrees.IIBTree"
40 "BTrees.IFBTree"
41 ];
42
43 meta = with lib; {
44 description = "Scalable persistent components";
45 homepage = "http://packages.python.org/BTrees";
46 license = licenses.zpl21;
47 maintainers = with maintainers; [ ];
48 };
49}