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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
973 B
Nix
Raw Normal View History

{
lib,
fetchPypi,
buildPythonPackage,
persistent,
zope-interface,
transaction,
zope-testrunner,
python,
pythonOlder,
}:
2017-03-15 09:29:27 +00:00
buildPythonPackage rec {
2022-03-10 22:29:46 +00:00
pname = "btrees";
2024-09-29 16:03:57 +01:00
version = "6.1";
format = "setuptools";
disabled = pythonOlder "3.7";
2017-03-15 09:29:27 +00:00
src = fetchPypi {
2024-09-29 16:03:57 +01:00
inherit pname version;
hash = "sha256-4YdG+GQYaaIPRTKMm1+X3GxxoRlZYDVq72O3X1yNRF8=";
2017-03-15 09:29:27 +00:00
};
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; {
2017-03-15 09:29:27 +00:00
description = "Scalable persistent components";
homepage = "http://packages.python.org/BTrees";
license = licenses.zpl21;
maintainers = [ ];
2017-03-15 09:29:27 +00:00
};
}