Skip to content

Commit

Permalink
pythonPackages.lmdb: Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Jan 6, 2021
1 parent 7452b3d commit 65eccfa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
16 changes: 10 additions & 6 deletions pkgs/development/python-modules/lmdb/default.nix
@@ -1,8 +1,10 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytest
, pytestCheckHook
, cffi
, lmdb
, ludios_wpull
}:

buildPythonPackage rec {
Expand All @@ -14,16 +16,18 @@ 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";
homepage = "https://github.com/dw/py-lmdb";
license = licenses.openldap;
maintainers = with maintainers; [ copumpkin ivan ];
};

}
4 changes: 3 additions & 1 deletion pkgs/top-level/python-packages.nix
Expand Up @@ -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 { };

Expand Down

0 comments on commit 65eccfa

Please sign in to comment.