2024-06-20 14:57:18 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools,
|
|
|
|
pkgs,
|
|
|
|
python,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "berkeleydb";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "18.1.10";
|
2024-06-20 14:57:18 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-QmNBoWAHqQAtmHpvTZcib46v/8saBIhIgFPTijEnyBo=";
|
2024-06-20 14:57:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 = [ ];
|
|
|
|
};
|
|
|
|
}
|