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";
|
2019-08-20 14:56:21 +02:00
|
|
|
version = "0.97";
|
2018-10-16 05:46:46 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-08-20 14:56:21 +02:00
|
|
|
sha256 = "0jw3n14x6qg5wps2w4qkqf4pyan949h1s2nbkrz2qh7xwnnp2g8p";
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|