forked from mirrors/nixpkgs
python bsddb3: move and update expression
The updated expression uses buildPythonPackage and thus installs a wheel. Unfortunately, setting the --berkeley-db flag seems to fail.
This commit is contained in:
parent
66f663e192
commit
fa45088ae9
|
@ -1,12 +0,0 @@
|
|||
{stdenv, fetchurl, python, db}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "bsddb3-6.1.0";
|
||||
src = fetchurl {
|
||||
url = "https://pypi.python.org/packages/source/b/bsddb3/${name}.tar.gz";
|
||||
sha256 = "05gx3rfgq1qrgdmpd6hri6y5l97bh1wczvb6x853jchwi7in6cdi";
|
||||
};
|
||||
buildInputs = [python];
|
||||
buildPhase = "true";
|
||||
installPhase = "python ./setup.py install --prefix=$out --berkeley-db=${db}";
|
||||
}
|
|
@ -9011,9 +9011,9 @@ let
|
|||
self = pypyPackages;
|
||||
});
|
||||
|
||||
bsddb3 = callPackage ../development/python-modules/bsddb3 { };
|
||||
foursuite = pythonPackages.foursuite;
|
||||
|
||||
bsddb3 = pythonPackages.bsddb3;
|
||||
|
||||
ecdsa = pythonPackages.ecdsa;
|
||||
|
||||
|
|
|
@ -1673,6 +1673,32 @@ in modules // {
|
|||
};
|
||||
};
|
||||
|
||||
bsddb3 = buildPythonPackage rec {
|
||||
name = "bsddb3-${version}";
|
||||
version = "6.1.0";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://pypi.python.org/packages/source/b/bsddb3/${name}.tar.gz";
|
||||
sha256 = "05gx3rfgq1qrgdmpd6hri6y5l97bh1wczvb6x853jchwi7in6cdi";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgs.db ];
|
||||
|
||||
# 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};
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Python bindings for Oracle Berkeley DB";
|
||||
homepage = http://www.jcea.es/programacion/pybsddb.htm;
|
||||
license = with licenses; [ agpl3 ]; # License changed from bsd3 to agpl3 since 6.x
|
||||
};
|
||||
};
|
||||
|
||||
bokeh = buildPythonPackage rec {
|
||||
name = "bokeh-${version}";
|
||||
version = "0.10.0";
|
||||
|
|
Loading…
Reference in a new issue