at master 973 B 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 = "6.1"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-4YdG+GQYaaIPRTKMm1+X3GxxoRlZYDVq72O3X1yNRF8="; 23 }; 24 25 propagatedBuildInputs = [ 26 persistent 27 zope-interface 28 ]; 29 30 nativeCheckInputs = [ 31 transaction 32 zope-testrunner 33 ]; 34 35 checkPhase = '' 36 runHook preCheck 37 ${python.interpreter} -m zope.testrunner --test-path=src --auto-color --auto-progress 38 runHook postCheck 39 ''; 40 41 pythonImportsCheck = [ 42 "BTrees.OOBTree" 43 "BTrees.IOBTree" 44 "BTrees.IIBTree" 45 "BTrees.IFBTree" 46 ]; 47 48 meta = with lib; { 49 description = "Scalable persistent components"; 50 homepage = "http://packages.python.org/BTrees"; 51 license = licenses.zpl21; 52 maintainers = [ ]; 53 }; 54}