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