nixpkgs/pkgs/development/python-modules/lmdb/default.nix

31 lines
613 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
2021-01-04 13:58:10 +00:00
, pytestCheckHook
, cffi
2021-01-04 13:58:10 +00:00
, lmdb
}:
buildPythonPackage rec {
pname = "lmdb";
2021-04-26 19:59:28 +00:00
version = "1.2.1";
src = fetchPypi {
inherit pname version;
2021-04-26 19:59:28 +00:00
sha256 = "5f76a90ebd08922acca11948779b5055f7a262687178e9e94f4e804b9f8465bc";
};
2021-01-04 13:58:10 +00:00
buildInputs = [ lmdb ];
checkInputs = [ cffi pytestCheckHook ];
LMDB_FORCE_SYSTEM=1;
meta = with lib; {
description = "Universal Python binding for the LMDB 'Lightning' Database";
homepage = "https://github.com/dw/py-lmdb";
license = licenses.openldap;
maintainers = with maintainers; [ copumpkin ivan ];
};
}