about summary refs log tree commit diff
path: root/pkgs/development/python-modules/lmdb/default.nix
blob: 8efc1e3fb12ca52cf51ddf7e05d17f674d7f426d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, cffi
, lmdb
}:

buildPythonPackage rec {
  pname = "lmdb";
  version = "1.3.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "60a11efc21aaf009d06518996360eed346f6000bfc9de05114374230879f992e";
  };

  buildInputs = [ lmdb ];

  checkInputs = [ cffi pytestCheckHook ];

  LMDB_FORCE_SYSTEM=1;

  meta = with lib; {
    description = "Universal Python binding for the LMDB 'Lightning' Database";
    homepage = "https://github.com/dw/py-lmdb";
    license = licenses.openldap;
    maintainers = with maintainers; [ copumpkin ivan ];
  };
}