at 24.11-pre 1.0 kB view raw
1{ 2 lib, 3 fetchPypi, 4 buildPythonPackage, 5 persistent, 6 zope-interface, 7 transaction, 8 zope-testrunner, 9 python, 10 pythonOlder, 11}: 12 13buildPythonPackage rec { 14 pname = "btrees"; 15 version = "5.2"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 pname = "BTrees"; 22 inherit version; 23 hash = "sha256-bkoK8BpLvslan5Mbr1xUWXn0NBoTp2Yf+KSXr089g4E="; 24 }; 25 26 propagatedBuildInputs = [ 27 persistent 28 zope-interface 29 ]; 30 31 nativeCheckInputs = [ 32 transaction 33 zope-testrunner 34 ]; 35 36 checkPhase = '' 37 runHook preCheck 38 ${python.interpreter} -m zope.testrunner --test-path=src --auto-color --auto-progress 39 runHook postCheck 40 ''; 41 42 pythonImportsCheck = [ 43 "BTrees.OOBTree" 44 "BTrees.IOBTree" 45 "BTrees.IIBTree" 46 "BTrees.IFBTree" 47 ]; 48 49 meta = with lib; { 50 description = "Scalable persistent components"; 51 homepage = "http://packages.python.org/BTrees"; 52 license = licenses.zpl21; 53 maintainers = with maintainers; [ ]; 54 }; 55}