Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 cffi, 7 lmdb, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "lmdb"; 13 version = "1.5.1"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-cXwlWCfTMeAvckK0QFGqBkZskPbXMuywezHt+x4Gxno="; 21 }; 22 23 buildInputs = [ lmdb ]; 24 25 nativeCheckInputs = [ 26 cffi 27 pytestCheckHook 28 ]; 29 30 LMDB_FORCE_SYSTEM = 1; 31 32 meta = with lib; { 33 description = "Universal Python binding for the LMDB 'Lightning' Database"; 34 homepage = "https://github.com/dw/py-lmdb"; 35 changelog = "https://github.com/jnwatson/py-lmdb/blob/py-lmdb_${version}/ChangeLog"; 36 license = licenses.openldap; 37 maintainers = with maintainers; [ 38 copumpkin 39 ivan 40 ]; 41 }; 42}