Files
nixpkgs/pkgs/development/python-modules/berkeleydb/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

44 lines
1.0 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
setuptools,
pkgs,
python,
}:
buildPythonPackage rec {
pname = "berkeleydb";
version = "18.1.14";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-jCYCgvV+vVucPOU9oOt1vllXrdswPjGQk1txZEjzL30=";
};
build-system = [ setuptools ];
# Every test currently fails with:
# berkeleydb.db.DBRunRecoveryError: (-30973, 'BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery -- BDB1546 unable to join the environment')
doCheck = !stdenv.hostPlatform.isDarwin;
checkPhase = ''
${python.interpreter} test.py
'';
# See: https://github.com/NixOS/nixpkgs/pull/311198/files#r1597746759
env = {
BERKELEYDB_INCDIR = "${lib.getDev pkgs.db}/include";
BERKELEYDB_LIBDIR = "${lib.getLib pkgs.db}/lib";
};
meta = {
description = "Python bindings for Oracle Berkeley DB";
homepage = "https://www.jcea.es/programacion/pybsddb.htm";
license = with lib.licenses; [ bsd3 ];
maintainers = [ ];
};
}