2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, persistent
|
|
|
|
, zope_interface
|
|
|
|
, transaction
|
|
|
|
, zope_testrunner
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "BTrees";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "4.7.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ transaction ];
|
|
|
|
propagatedBuildInputs = [ persistent zope_interface ];
|
|
|
|
checkInputs = [ zope_testrunner ];
|
|
|
|
|
|
|
|
# disable a failing test that looks broken
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace BTrees/tests/common.py \
|
|
|
|
--replace "testShortRepr" "no_testShortRepr"
|
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "7ce4a5eb5c135bcb5c06b5bd1ca6fd7fd39d8631306182307ed8bc30d3033846";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Scalable persistent components";
|
|
|
|
homepage = "http://packages.python.org/BTrees";
|
|
|
|
license = licenses.zpl21;
|
|
|
|
};
|
|
|
|
}
|