pythonPackages.lmdb: Fix build

This commit is contained in:
Sandro Jäckel 2021-01-04 14:58:10 +01:00
parent 7452b3d853
commit 65eccfad5d
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 13 additions and 7 deletions

View File

@ -1,8 +1,10 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytest
, pytestCheckHook
, cffi
, lmdb
, ludios_wpull
}:
buildPythonPackage rec {
@ -14,10 +16,13 @@ buildPythonPackage rec {
sha256 = "4136ffdf0aad61da86d1402808029d002a771b2a9ccc9b39c6bcafa7847c21b6";
};
checkInputs = [ pytest cffi ];
checkPhase = ''
py.test
'';
buildInputs = [ lmdb ];
propogatedBuildInputs = [ ludios_wpull ];
checkInputs = [ cffi pytestCheckHook ];
LMDB_FORCE_SYSTEM=1;
meta = with stdenv.lib; {
description = "Universal Python binding for the LMDB 'Lightning' Database";
@ -25,5 +30,4 @@ buildPythonPackage rec {
license = licenses.openldap;
maintainers = with maintainers; [ copumpkin ivan ];
};
}

View File

@ -3634,7 +3634,9 @@ in {
llvm = pkgs.llvm_9;
}; # llvmlite always requires a specific version of llvm.
lmdb = callPackage ../development/python-modules/lmdb { };
lmdb = callPackage ../development/python-modules/lmdb {
inherit (pkgs) lmdb;
};
lml = callPackage ../development/python-modules/lml { };