about summary refs log tree commit diff
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2020-08-17 21:56:47 +0200
committerProfpatsch <mail@profpatsch.de>2020-09-21 13:39:37 +0200
commit3c03a98235d88cc498e174564a73effc43687fa4 (patch)
treeea24c603255891617afb2878c70f0ce33cd66c9c
parentf000c741a33725599661e66c2bfe0adca74ea1a0 (diff)
duplicity: use new b2sdk python package
The backblaze library moved into the b2sdk package.
If it’s not used, duplicity fails loading the b2:// backend.

> BackendException: B2 backend requires B2 Python SDK (pip install
  b2sdk)
-rw-r--r--pkgs/tools/backup/duplicity/default.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/pkgs/tools/backup/duplicity/default.nix b/pkgs/tools/backup/duplicity/default.nix
index 6d6da3c98749f..c12cc1198c9cf 100644
--- a/pkgs/tools/backup/duplicity/default.nix
+++ b/pkgs/tools/backup/duplicity/default.nix
@@ -46,9 +46,8 @@ pythonPackages.buildPythonApplication rec {
     librsync
   ];
 
-  propagatedBuildInputs = [
-    backblaze-b2
-  ] ++ (with pythonPackages; [
+  propagatedBuildInputs = with pythonPackages; [
+    b2sdk
     boto
     cffi
     cryptography
@@ -65,7 +64,7 @@ pythonPackages.buildPythonApplication rec {
     future
   ] ++ stdenv.lib.optionals (!isPy3k) [
     enum
-  ]);
+  ];
 
   checkInputs = [
     gnupg # Add 'gpg' to PATH.