2021-01-25 08:26:54 +00:00
|
|
|
{
|
|
|
|
lib,
|
2018-06-28 07:12:43 +01:00
|
|
|
fetchPypi,
|
|
|
|
buildPythonPackage,
|
|
|
|
persistent,
|
2024-01-06 18:05:46 +00:00
|
|
|
zope-interface,
|
2018-06-28 07:12:43 +01:00
|
|
|
transaction,
|
2024-01-06 18:05:46 +00:00
|
|
|
zope-testrunner,
|
2021-07-04 00:11:29 +01:00
|
|
|
python,
|
2022-03-10 22:28:21 +00:00
|
|
|
pythonOlder,
|
2018-06-28 07:12:43 +01:00
|
|
|
}:
|
2017-03-15 09:29:27 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-03-10 22:29:46 +00:00
|
|
|
pname = "btrees";
|
2024-09-29 16:03:57 +01:00
|
|
|
version = "6.1";
|
2022-03-10 22:28:21 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2017-03-15 09:29:27 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-09-29 16:03:57 +01:00
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-4YdG+GQYaaIPRTKMm1+X3GxxoRlZYDVq72O3X1yNRF8=";
|
2017-03-15 09:29:27 +00:00
|
|
|
};
|
|
|
|
|
2021-07-04 00:11:29 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
persistent
|
2024-01-06 18:05:46 +00:00
|
|
|
zope-interface
|
2021-07-04 00:11:29 +01:00
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-07-04 00:11:29 +01:00
|
|
|
transaction
|
2024-01-06 18:05:46 +00:00
|
|
|
zope-testrunner
|
2021-07-04 00:11:29 +01: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-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-03-15 09:29:27 +00:00
|
|
|
description = "Scalable persistent components";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://packages.python.org/BTrees";
|
2017-08-06 12:49:18 +01:00
|
|
|
license = licenses.zpl21;
|
2024-07-28 15:44:11 +01:00
|
|
|
maintainers = [ ];
|
2017-03-15 09:29:27 +00:00
|
|
|
};
|
|
|
|
}
|