push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
{
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 = with lib; {
description = "Python bindings for Oracle Berkeley DB";
homepage = "https://www.jcea.es/programacion/pybsddb.htm";
license = with licenses; [ agpl3Only ]; # License changed from bsd3 to agpl3 since 6.x
maintainers = [ ];
};
}