bdc271151e
Signed-off-by: Marcin Serwin <marcin@serwin.dev>
45 lines
848 B
Nix
45 lines
848 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
patch-ng,
|
|
pytestCheckHook,
|
|
cffi,
|
|
lmdb,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "lmdb";
|
|
version = "1.7.5";
|
|
pyproject = true;
|
|
|
|
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 = [
|
|
];
|
|
};
|
|
}
|