2018-10-15 17:28:32 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pkgs
|
2018-11-03 11:40:03 +00:00
|
|
|
, python
|
2018-10-15 17:28:32 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bsddb3";
|
2020-02-20 18:58:16 +00:00
|
|
|
version = "6.2.7";
|
2018-10-15 17:28:32 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-02-20 18:58:16 +00:00
|
|
|
sha256 = "17yw0by4lycwpvnx06cnzbbchz4zvzbx3j89b20xa314xdizmxxh";
|
2018-10-15 17:28:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pkgs.db ];
|
|
|
|
|
2018-11-03 11:40:03 +00:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} test.py
|
|
|
|
'';
|
2018-10-15 17:28:32 +01:00
|
|
|
|
|
|
|
# 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};
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python bindings for Oracle Berkeley DB";
|
|
|
|
homepage = https://www.jcea.es/programacion/pybsddb.htm;
|
|
|
|
license = with licenses; [ agpl3 ]; # License changed from bsd3 to agpl3 since 6.x
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|