Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
929 B
Nix
49 lines
929 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
patch-ng,
|
|
pytestCheckHook,
|
|
cffi,
|
|
lmdb,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "lmdb";
|
|
version = "1.7.3";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-1KJ7evT+OPNAnZ+/v0e2F7PZTe6YoAvIwqgzbM0/mxU=";
|
|
};
|
|
|
|
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
|
|
];
|
|
};
|
|
}
|