2018-06-28 06:12:43 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, persistent
|
|
|
|
, zope_interface
|
|
|
|
, transaction
|
|
|
|
, zope_testrunner
|
|
|
|
}:
|
2017-03-15 09:29:27 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "BTrees";
|
2019-11-19 14:35:33 +00:00
|
|
|
version = "4.6.1";
|
2017-03-15 09:29:27 +00:00
|
|
|
|
2017-07-22 02:20:45 +00:00
|
|
|
buildInputs = [ transaction ];
|
|
|
|
propagatedBuildInputs = [ persistent zope_interface ];
|
2018-06-28 06:12:43 +00:00
|
|
|
checkInputs = [ zope_testrunner ];
|
2017-03-15 09:29:27 +00:00
|
|
|
|
2018-09-13 00:32:37 +00:00
|
|
|
# disable a failing test that looks broken
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace BTrees/tests/common.py \
|
|
|
|
--replace "testShortRepr" "no_testShortRepr"
|
|
|
|
'';
|
|
|
|
|
2017-03-15 09:29:27 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-19 14:35:33 +00:00
|
|
|
sha256 = "b3a0e1d073800bf7bcca6cbb97a6b3c9ec485a4ba3ee0b354da1ed076cfb9f30";
|
2017-03-15 09:29:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Scalable persistent components";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://packages.python.org/BTrees";
|
2017-08-06 11:49:18 +00:00
|
|
|
license = licenses.zpl21;
|
2017-03-15 09:29:27 +00:00
|
|
|
};
|
|
|
|
}
|