2018-10-16 05:46:46 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2018-12-13 09:08:05 +01:00
|
|
|
, pytest
|
|
|
|
, cffi
|
2018-10-16 05:46:46 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lmdb";
|
2018-10-24 11:54:18 +02:00
|
|
|
version = "0.94";
|
2018-10-16 05:46:46 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-10-24 11:54:18 +02:00
|
|
|
sha256 = "1zh38gvkqw1jm5105if6rr7ccbgyxr7k2rm5ygb9ab3bq82pyaww";
|
2018-10-16 05:46:46 +02:00
|
|
|
};
|
|
|
|
|
2018-12-13 09:08:05 +01:00
|
|
|
checkInputs = [ pytest cffi ];
|
|
|
|
checkPhase = ''
|
|
|
|
export PYTHONPATH=.:$PYTHONPATH
|
|
|
|
py.test
|
|
|
|
'';
|
2018-10-16 05:46:46 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Universal Python binding for the LMDB 'Lightning' Database";
|
|
|
|
homepage = "https://github.com/dw/py-lmdb";
|
|
|
|
license = licenses.openldap;
|
|
|
|
maintainers = with maintainers; [ copumpkin ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|