55 lines
973 B
Nix
55 lines
973 B
Nix
{
|
|
lib,
|
|
fetchPypi,
|
|
buildPythonPackage,
|
|
persistent,
|
|
zope-interface,
|
|
transaction,
|
|
zope-testrunner,
|
|
python,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "btrees";
|
|
version = "6.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-4YdG+GQYaaIPRTKMm1+X3GxxoRlZYDVq72O3X1yNRF8=";
|
|
};
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|