1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, pytest
5, cffi
6}:
7
8buildPythonPackage rec {
9 pname = "lmdb";
10 version = "0.99";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "f9eb844aaaacc8a4bc175e1c1f8a8fb538c330e378fd9eb40e8708d4dca7dc89";
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}