11 buildPythonPackage rec {
17 inherit pname version;
18 sha256 = "70d05ec8dc568f42e70fc919a442e0daadc2a905a1cfb7ca77f549d49d6e7801";
21 build-system = [ setuptools ];
23 buildInputs = [ pkgs.db ];
25 # See : https://github.com/NixOS/nixpkgs/pull/311198#discussion_r1599257522
26 # More details here : https://www.jcea.es/programacion/pybsddb.htm
27 disabled = pythonAtLeast "3.10";
29 # Path to database need to be set.
30 # Somehow the setup.py flag is not propagated.
31 #setupPyBuildFlags = [ "--berkeley-db=${pkgs.db}" ];
32 # We can also use a variable
34 export BERKELEYDB_DIR=${pkgs.db.dev};
38 substituteInPlace test3.py \
39 --replace-fail "from distutils.util import get_platform" "from sysconfig import get_platform" \
40 --replace-fail "sys.config[0:3]" "sys.implementation.cache_tag"
44 ${python.interpreter} test.py
48 description = "Python bindings for Oracle Berkeley DB";
49 homepage = "https://www.jcea.es/programacion/pybsddb.htm";
50 license = with licenses; [ agpl3Only ]; # License changed from bsd3 to agpl3 since 6.x