2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2018-10-16 05:46:46 +02:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-04 14:58:10 +01:00
|
|
|
, pytestCheckHook
|
2018-12-13 09:08:05 +01:00
|
|
|
, cffi
|
2021-01-04 14:58:10 +01:00
|
|
|
, lmdb
|
|
|
|
, ludios_wpull
|
2018-10-16 05:46:46 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "lmdb";
|
2020-11-29 15:04:33 +01:00
|
|
|
version = "1.0.0";
|
2018-10-16 05:46:46 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 15:04:33 +01:00
|
|
|
sha256 = "4136ffdf0aad61da86d1402808029d002a771b2a9ccc9b39c6bcafa7847c21b6";
|
2018-10-16 05:46:46 +02:00
|
|
|
};
|
|
|
|
|
2021-01-04 14:58:10 +01:00
|
|
|
buildInputs = [ lmdb ];
|
|
|
|
|
|
|
|
propogatedBuildInputs = [ ludios_wpull ];
|
|
|
|
|
|
|
|
checkInputs = [ cffi pytestCheckHook ];
|
|
|
|
|
|
|
|
LMDB_FORCE_SYSTEM=1;
|
2018-10-16 05:46:46 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-10-16 05:46:46 +02:00
|
|
|
description = "Universal Python binding for the LMDB 'Lightning' Database";
|
|
|
|
homepage = "https://github.com/dw/py-lmdb";
|
|
|
|
license = licenses.openldap;
|
2019-09-09 16:31:08 +02:00
|
|
|
maintainers = with maintainers; [ copumpkin ivan ];
|
2018-10-16 05:46:46 +02:00
|
|
|
};
|
|
|
|
}
|