Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 34 lines 763 B view raw
1{ lib 2, fetchPypi 3, buildPythonPackage 4, persistent 5, zope_interface 6, transaction 7, zope_testrunner 8}: 9 10buildPythonPackage rec { 11 pname = "BTrees"; 12 version = "4.7.2"; 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 = "7ce4a5eb5c135bcb5c06b5bd1ca6fd7fd39d8631306182307ed8bc30d3033846"; 27 }; 28 29 meta = with lib; { 30 description = "Scalable persistent components"; 31 homepage = "http://packages.python.org/BTrees"; 32 license = licenses.zpl21; 33 }; 34}