Unverified Commit 8c874fbd authored by natsukium's avatar natsukium
Browse files

python312Packages.lmdb: switch to pypa builder

parent 9e36ea2d
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -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
    ];