Commit a4a5cc3c authored by Robert Schütz's avatar Robert Schütz
Browse files

python3Packages.bsddb3: drop

parent cb6aa806
Loading
Loading
Loading
Loading
+0 −53
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  pythonAtLeast,
  python,
  fetchPypi,
  setuptools,
  pkgs,
}:

buildPythonPackage rec {
  pname = "bsddb3";
  version = "6.2.9";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    sha256 = "70d05ec8dc568f42e70fc919a442e0daadc2a905a1cfb7ca77f549d49d6e7801";
  };

  build-system = [ setuptools ];

  buildInputs = [ pkgs.db ];

  # See : https://github.com/NixOS/nixpkgs/pull/311198#discussion_r1599257522
  # More details here : https://www.jcea.es/programacion/pybsddb.htm
  disabled = pythonAtLeast "3.10";

  # Path to database need to be set.
  # Somehow the setup.py flag is not propagated.
  #setupPyBuildFlags = [ "--berkeley-db=${pkgs.db}" ];
  # We can also use a variable
  preConfigure = ''
    export BERKELEYDB_DIR=${pkgs.db.dev};
  '';

  postPatch = ''
    substituteInPlace test3.py \
      --replace-fail "from distutils.util import get_platform" "from sysconfig import get_platform" \
      --replace-fail "sys.config[0:3]" "sys.implementation.cache_tag"
  '';

  checkPhase = ''
    ${python.interpreter} test.py
  '';

  meta = {
    description = "Python bindings for Oracle Berkeley DB";
    homepage = "https://www.jcea.es/programacion/pybsddb.htm";
    license = with lib.licenses; [ agpl3Only ]; # License changed from bsd3 to agpl3 since 6.x
    maintainers = [ ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -88,6 +88,7 @@ mapAliases {
  bkcharts = throw "'bkcharts' has been removed as the upstream repository was archived in 2018"; # added 2025-08-26
  BlinkStick = throw "'BlinkStick' has been renamed to/replaced by 'blinkstick'"; # Converted to throw 2025-10-29
  bsblan = throw "'bsblan' has been renamed to/replaced by 'python-bsblan'"; # Converted to throw 2025-10-29
  bsddb3 = throw "'bsddb3' has been removed because it was deprecated in favor of 'berkeleydb'"; # added 2026-01-20
  bt_proximity = throw "'bt_proximity' has been renamed to/replaced by 'bt-proximity'"; # Converted to throw 2025-10-29
  btchip = throw "'btchip' has been renamed to/replaced by 'btchip-python'"; # Converted to throw 2025-10-29
  BTrees = throw "'BTrees' has been renamed to/replaced by 'btrees'"; # Converted to throw 2025-10-29
+0 −2
Original line number Diff line number Diff line
@@ -2285,8 +2285,6 @@ self: super: with self; {
  brunt = callPackage ../development/python-modules/brunt { };
  bsddb3 = callPackage ../development/python-modules/bsddb3 { };
  bsdiff4 = callPackage ../development/python-modules/bsdiff4 { };
  bson = callPackage ../development/python-modules/bson { };