Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 43 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344{ 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 = with lib; { description = "Python bindings for Oracle Berkeley DB"; homepage = "https://www.jcea.es/programacion/pybsddb.htm"; license = with licenses; [ bsd3 ]; maintainers = [ ]; };}