nixpkgs/pkgs/development/python-modules/bsddb3/default.nix

13 lines
385 B
Nix
Raw Normal View History

{stdenv, fetchurl, python, db}:
stdenv.mkDerivation rec {
2014-11-17 18:07:17 +00:00
name = "bsddb3-6.1.0";
src = fetchurl {
url = "https://pypi.python.org/packages/source/b/bsddb3/${name}.tar.gz";
2014-11-17 18:07:17 +00:00
sha256 = "05gx3rfgq1qrgdmpd6hri6y5l97bh1wczvb6x853jchwi7in6cdi";
};
buildInputs = [python];
buildPhase = "true";
installPhase = "python ./setup.py install --prefix=$out --berkeley-db=${db}";
}