python312Packages.lmdb: switch to pypa builder

This commit is contained in:
natsukium
2025-01-18 16:04:04 +09:00
parent 9e36ea2dc8
commit 8c874fbdb4
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pytestCheckHook,
cffi,
lmdb,
@@ -11,7 +12,7 @@
buildPythonPackage rec {
pname = "lmdb";
version = "1.6.2";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
@@ -20,8 +21,12 @@ buildPythonPackage rec {
hash = "sha256-0o4/pZk1/2iIWHYOxS8gLsuMEImj9o0fFi6jB40VHnM=";
};
build-system = [ setuptools ];
buildInputs = [ lmdb ];
pythonImportsCheck = [ "lmdb" ];
nativeCheckInputs = [
cffi
pytestCheckHook
@@ -29,12 +34,12 @@ buildPythonPackage rec {
LMDB_FORCE_SYSTEM = 1;
meta = with lib; {
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 = licenses.openldap;
maintainers = with maintainers; [
license = lib.licenses.openldap;
maintainers = with lib.maintainers; [
copumpkin
ivan
];