summary refs log tree commit diff
path: root/pkgs/development/tools/backblaze-b2/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/backblaze-b2/default.nix')
-rw-r--r--pkgs/development/tools/backblaze-b2/default.nix15
1 files changed, 13 insertions, 2 deletions
diff --git a/pkgs/development/tools/backblaze-b2/default.nix b/pkgs/development/tools/backblaze-b2/default.nix
index 7cf709066542..6b133d959ccb 100644
--- a/pkgs/development/tools/backblaze-b2/default.nix
+++ b/pkgs/development/tools/backblaze-b2/default.nix
@@ -4,13 +4,13 @@
 
 buildPythonApplication rec {
   pname = "backblaze-b2";
-  version = "1.1.0";
+  version = "1.3.6";
 
   src = fetchFromGitHub {
     owner = "Backblaze";
     repo = "B2_Command_Line_Tool";
     rev = "v${version}";
-    sha256 = "0697rcdsmxz51p4b8m8klx2mf5xnx6vx56vcf5jmzidh8mc38a6z";
+    sha256 = "12axb0c56razfhrx1l62sjvdrbg6vz0yyqph2mxyjza1ywpb93b5";
   };
 
   propagatedBuildInputs = [ arrow futures logfury requests six tqdm ];
@@ -19,6 +19,17 @@ buildPythonApplication rec {
     python test_b2_command_line.py test
   '';
 
+  postPatch = ''
+    # b2 uses an upper bound on arrow, because arrow 0.12.1 is not
+    # compatible with Python 2.6:
+    #
+    # https://github.com/crsmithdev/arrow/issues/517
+    #
+    # However, since we use Python 2.7, newer versions of arrow are fine.
+
+    sed -i 's/,<0.12.1//g' requirements.txt
+  '';
+
   postInstall = ''
     mv "$out/bin/b2" "$out/bin/backblaze-b2"