2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, persistent
|
|
|
|
, zope_interface
|
|
|
|
, transaction
|
|
|
|
, zope_testrunner
|
2021-07-21 07:28:18 +00:00
|
|
|
, python
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "BTrees";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "4.9.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "d33323655924192c4ac998d9ee3002e787915d19c1e17a6baf47c9a63d9556e3";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
persistent
|
|
|
|
zope_interface
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
transaction
|
|
|
|
zope_testrunner
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
${python.interpreter} -m zope.testrunner --test-path=src --auto-color --auto-progress
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"BTrees.OOBTree"
|
|
|
|
"BTrees.IOBTree"
|
|
|
|
"BTrees.IIBTree"
|
|
|
|
"BTrees.IFBTree"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Scalable persistent components";
|
|
|
|
homepage = "http://packages.python.org/BTrees";
|
|
|
|
license = licenses.zpl21;
|
2021-07-21 07:28:18 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|