From dae4ffdfdf7302810813e7873a66064c0cf1c602 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 10 Feb 2010 18:10:22 +0000 Subject: [PATCH] * Added `boto', a Python interface to AWS. * Add boto as a dependency to duplicity to support backups to Amazon S3. svn path=/nixpkgs/trunk/; revision=19913 --- pkgs/tools/backup/duplicity/default.nix | 4 ++-- pkgs/top-level/all-packages.nix | 1 + pkgs/top-level/python-packages.nix | 23 +++++++++++++++++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/backup/duplicity/default.nix b/pkgs/tools/backup/duplicity/default.nix index aacc4f35754f..007241d0e825 100644 --- a/pkgs/tools/backup/duplicity/default.nix +++ b/pkgs/tools/backup/duplicity/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, python, librsync, gnupg, makeWrapper }: +{ stdenv, fetchurl, python, librsync, gnupg, boto, makeWrapper }: stdenv.mkDerivation { name = "duplicity-0.6.06"; @@ -11,7 +11,7 @@ stdenv.mkDerivation { installPhase = '' python setup.py install --prefix=$out wrapProgram $out/bin/duplicity \ - --prefix PYTHONPATH : "$(toPythonPath $out)" \ + --prefix PYTHONPATH : "$(toPythonPath $out):$(toPythonPath ${boto})" \ --prefix PATH : "${gnupg}/bin" ''; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 96c5d598f1a3..eeca3036ed2f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -620,6 +620,7 @@ let duplicity = import ../tools/backup/duplicity { inherit fetchurl stdenv librsync gnupg makeWrapper python; + inherit (pythonPackages) boto; }; dvdplusrwtools = import ../tools/cd-dvd/dvd+rw-tools { diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5337eeb521d4..6b39d019a982 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -34,6 +34,29 @@ rec { }; }); + boto = buildPythonPackage (rec { + name = "boto-1.9b"; + + src = fetchurl { + url = "http://boto.googlecode.com/files/${name}.tar.gz"; + sha256 = "0kir3ddm79rxdf7wb5czmxpbnqzgj3j966q4mach29kkb98p48wz"; + }; + + meta = { + homepage = http://code.google.com/p/boto/; + + license = "bsd"; + + description = "Python interface to Amazon Web Services"; + + longDescription = '' + The boto module is an integrated interface to current and + future infrastructural services offered by Amazon Web + Services. This includes S3, SQS, EC2, among others. + ''; + }; + }); + darcsver = buildPythonPackage (rec { name = "darcsver-1.3.1";