depot/third_party/nixpkgs/pkgs/development/python-modules/berkeleydb/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

38 lines
795 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pkgs,
python,
}:
buildPythonPackage rec {
pname = "berkeleydb";
version = "18.1.8";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-4YMaeQv9hVdA5cEvlS8Z9kbCaYBs/DYnda/Zh4zzJVc=";
};
build-system = [ setuptools ];
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 = [ ];
};
}