Files
nixpkgs/pkgs/development/python-modules/lmdb/default.nix
T
2025-10-16 15:59:38 +00:00

49 lines
929 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
patch-ng,
pytestCheckHook,
cffi,
lmdb,
pythonOlder,
}:
buildPythonPackage rec {
pname = "lmdb";
version = "1.7.5";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-8GBHUXYssJcFnVQSRExAV7lfOGx+2Vg2PPY/RT5RCNo=";
};
build-system = [ setuptools ];
buildInputs = [ lmdb ];
nativeBuildInputs = [ cffi ];
env.LMDB_FORCE_SYSTEM = 1;
dependencies = [ patch-ng ];
pythonImportsCheck = [ "lmdb" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Universal Python binding for the LMDB 'Lightning' Database";
homepage = "https://github.com/dw/py-lmdb";
changelog = "https://github.com/jnwatson/py-lmdb/blob/py-lmdb_${version}/ChangeLog";
license = lib.licenses.openldap;
maintainers = with lib.maintainers; [
ivan
];
};
}