1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5, cffi
6, lmdb
7}:
8
9buildPythonPackage rec {
10 pname = "lmdb";
11 version = "1.3.0";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "60a11efc21aaf009d06518996360eed346f6000bfc9de05114374230879f992e";
16 };
17
18 buildInputs = [ lmdb ];
19
20 checkInputs = [ cffi pytestCheckHook ];
21
22 LMDB_FORCE_SYSTEM=1;
23
24 meta = with lib; {
25 description = "Universal Python binding for the LMDB 'Lightning' Database";
26 homepage = "https://github.com/dw/py-lmdb";
27 license = licenses.openldap;
28 maintainers = with maintainers; [ copumpkin ivan ];
29 };
30}