Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 34 lines 771 B view raw
1{ stdenv 2, fetchPypi 3, buildPythonPackage 4, persistent 5, zope_interface 6, transaction 7, zope_testrunner 8}: 9 10buildPythonPackage rec { 11 pname = "BTrees"; 12 version = "4.6.1"; 13 14 buildInputs = [ transaction ]; 15 propagatedBuildInputs = [ persistent zope_interface ]; 16 checkInputs = [ zope_testrunner ]; 17 18 # disable a failing test that looks broken 19 postPatch = '' 20 substituteInPlace BTrees/tests/common.py \ 21 --replace "testShortRepr" "no_testShortRepr" 22 ''; 23 24 src = fetchPypi { 25 inherit pname version; 26 sha256 = "b3a0e1d073800bf7bcca6cbb97a6b3c9ec485a4ba3ee0b354da1ed076cfb9f30"; 27 }; 28 29 meta = with stdenv.lib; { 30 description = "Scalable persistent components"; 31 homepage = http://packages.python.org/BTrees; 32 license = licenses.zpl21; 33 }; 34}