depot/third_party/nixpkgs/pkgs/development/python-modules/btrees/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

55 lines
989 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 = [ ];
};
}