f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
55 lines
1,007 B
Nix
55 lines
1,007 B
Nix
{
|
|
lib,
|
|
fetchPypi,
|
|
buildPythonPackage,
|
|
persistent,
|
|
zope-interface,
|
|
transaction,
|
|
zope-testrunner,
|
|
python,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "btrees";
|
|
version = "6.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "BTrees";
|
|
inherit version;
|
|
hash = "sha256-9puM3TNDThPhgCFruCrgt80x+t+3zFWWlcs3MZyjX/A=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
persistent
|
|
zope-interface
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Scalable persistent components";
|
|
homepage = "http://packages.python.org/BTrees";
|
|
license = licenses.zpl21;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|