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