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";
|
2020-11-29 14:04:33 +00:00
|
|
|
version = "1.0.0";
|
2018-10-16 04:46:46 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:33 +00:00
|
|
|
sha256 = "4136ffdf0aad61da86d1402808029d002a771b2a9ccc9b39c6bcafa7847c21b6";
|
2018-10-16 04:46:46 +01:00
|
|
|
};
|
|
|
|
|
2018-12-13 08:08:05 +00:00
|
|
|
checkInputs = [ pytest cffi ];
|
|
|
|
checkPhase = ''
|
|
|
|
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;
|
2019-09-09 15:31:08 +01:00
|
|
|
maintainers = with maintainers; [ copumpkin ivan ];
|
2018-10-16 04:46:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|