2021-01-25 00:26:54 -08:00
|
|
|
{ lib
|
2018-06-27 23:12:43 -07:00
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, persistent
|
|
|
|
, zope_interface
|
|
|
|
, transaction
|
|
|
|
, zope_testrunner
|
|
|
|
}:
|
2017-03-15 02:29:27 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "BTrees";
|
2020-06-05 23:47:00 -07:00
|
|
|
version = "4.7.2";
|
2017-03-15 02:29:27 -07:00
|
|
|
|
2017-07-21 19:20:45 -07:00
|
|
|
buildInputs = [ transaction ];
|
|
|
|
propagatedBuildInputs = [ persistent zope_interface ];
|
2018-06-27 23:12:43 -07:00
|
|
|
checkInputs = [ zope_testrunner ];
|
2017-03-15 02:29:27 -07:00
|
|
|
|
2018-09-12 17:32:37 -07:00
|
|
|
# disable a failing test that looks broken
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace BTrees/tests/common.py \
|
|
|
|
--replace "testShortRepr" "no_testShortRepr"
|
|
|
|
'';
|
|
|
|
|
2017-03-15 02:29:27 -07:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-05 23:47:00 -07:00
|
|
|
sha256 = "7ce4a5eb5c135bcb5c06b5bd1ca6fd7fd39d8631306182307ed8bc30d3033846";
|
2017-03-15 02:29:27 -07:00
|
|
|
};
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2017-03-15 02:29:27 -07:00
|
|
|
description = "Scalable persistent components";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://packages.python.org/BTrees";
|
2017-08-06 04:49:18 -07:00
|
|
|
license = licenses.zpl21;
|
2017-03-15 02:29:27 -07:00
|
|
|
};
|
|
|
|
}
|