2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchPypi,
|
|
|
|
buildPythonPackage,
|
|
|
|
persistent,
|
|
|
|
zope-interface,
|
|
|
|
transaction,
|
|
|
|
zope-testrunner,
|
|
|
|
python,
|
|
|
|
pythonOlder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "btrees";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "6.0";
|
2022-03-30 09:31:56 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "BTrees";
|
|
|
|
inherit version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-9puM3TNDThPhgCFruCrgt80x+t+3zFWWlcs3MZyjX/A=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
persistent
|
2024-01-13 08:15:51 +00:00
|
|
|
zope-interface
|
2021-07-21 07:28:18 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-07-21 07:28:18 +00:00
|
|
|
transaction
|
2024-01-13 08:15:51 +00:00
|
|
|
zope-testrunner
|
2021-07-21 07:28:18 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|