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