2018-10-16 04:46:46 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2018-12-13 08:08:05 +00:00
|
|
|
, pytest
|
|
|
|
, cffi
|
2018-10-16 04:46:46 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lmdb";
|
2019-08-05 17:16:10 +01:00
|
|
|
version = "0.96";
|
2018-10-16 04:46:46 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-08-05 17:16:10 +01:00
|
|
|
sha256 = "0wpahad7wac34r1hxa1jhk0bsll39n7667cljyr5251kj12ksfgr";
|
2018-10-16 04:46:46 +01:00
|
|
|
};
|
|
|
|
|
2018-12-13 08:08:05 +00:00
|
|
|
checkInputs = [ pytest cffi ];
|
|
|
|
checkPhase = ''
|
|
|
|
export PYTHONPATH=.:$PYTHONPATH
|
|
|
|
py.test
|
|
|
|
'';
|
2018-10-16 04:46:46 +01: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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|