nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 45 lines 881 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 patch-ng, 7 pytestCheckHook, 8 cffi, 9 lmdb, 10}: 11 12buildPythonPackage rec { 13 pname = "lmdb"; 14 version = "1.7.5"; 15 pyproject = true; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-8GBHUXYssJcFnVQSRExAV7lfOGx+2Vg2PPY/RT5RCNo="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 buildInputs = [ lmdb ]; 25 26 nativeBuildInputs = [ cffi ]; 27 28 env.LMDB_FORCE_SYSTEM = 1; 29 30 dependencies = [ patch-ng ]; 31 32 pythonImportsCheck = [ "lmdb" ]; 33 34 nativeCheckInputs = [ pytestCheckHook ]; 35 36 meta = { 37 description = "Universal Python binding for the LMDB 'Lightning' Database"; 38 homepage = "https://github.com/dw/py-lmdb"; 39 changelog = "https://github.com/jnwatson/py-lmdb/blob/py-lmdb_${version}/ChangeLog"; 40 license = lib.licenses.openldap; 41 maintainers = with lib.maintainers; [ 42 ivan 43 ]; 44 }; 45}