nixpkgs/pkgs/development/python-modules/btrees/default.nix

50 lines
919 B
Nix
Raw Normal View History

{ lib
, fetchPypi
, buildPythonPackage
, persistent
, zope_interface
, transaction
, zope_testrunner
, python
}:
2017-03-15 09:29:27 +00:00
buildPythonPackage rec {
pname = "BTrees";
2021-06-18 21:47:10 +00:00
version = "4.9.2";
2017-03-15 09:29:27 +00:00
src = fetchPypi {
inherit pname version;
2021-06-18 21:47:10 +00:00
sha256 = "d33323655924192c4ac998d9ee3002e787915d19c1e17a6baf47c9a63d9556e3";
2017-03-15 09:29:27 +00:00
};
propagatedBuildInputs = [
persistent
zope_interface
];
checkInputs = [
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; {
2017-03-15 09:29:27 +00:00
description = "Scalable persistent components";
homepage = "http://packages.python.org/BTrees";
license = licenses.zpl21;
maintainers = with maintainers; [ ];
2017-03-15 09:29:27 +00:00
};
}