b5f92a349c
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
54 lines
996 B
Nix
54 lines
996 B
Nix
{ lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, persistent
|
|
, zope_interface
|
|
, transaction
|
|
, zope_testrunner
|
|
, python
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "btrees";
|
|
version = "5.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "BTrees";
|
|
inherit version;
|
|
hash = "sha256-raDzHpMloEeV0dJOAn7ZsrZdpNZqz/i4eVWzUo1/w2k=";
|
|
};
|
|
|
|
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; [ ];
|
|
};
|
|
}
|