blob: bf6c93b633d3eca80df8005d13abb966a9a90c25 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pkgs,
python,
}:
buildPythonPackage rec {
pname = "berkeleydb";
version = "18.1.10";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-QmNBoWAHqQAtmHpvTZcib46v/8saBIhIgFPTijEnyBo=";
};
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 = [ ];
};
}
|