summary refs log tree commit diff
path: root/pkgs/development/tools/backblaze-b2
diff options
context:
space:
mode:
authorTom Houlé <tom@tomhoule.com>2022-08-14 18:47:13 +0200
committerTom Houlé <tom@tomhoule.com>2022-08-15 07:56:57 +0200
commit7aeffe56b0ebb903dfd2711dc47f4f581238d9c4 (patch)
tree7ba67bf84d73faf63d5430f931eb59759edfd246 /pkgs/development/tools/backblaze-b2
parentbc4b4a50c7a105c56f1b712a87818678298deef3 (diff)
downloadnixpkgs-7aeffe56b0ebb903dfd2711dc47f4f581238d9c4.tar
nixpkgs-7aeffe56b0ebb903dfd2711dc47f4f581238d9c4.tar.gz
nixpkgs-7aeffe56b0ebb903dfd2711dc47f4f581238d9c4.tar.bz2
nixpkgs-7aeffe56b0ebb903dfd2711dc47f4f581238d9c4.tar.lz
nixpkgs-7aeffe56b0ebb903dfd2711dc47f4f581238d9c4.tar.xz
nixpkgs-7aeffe56b0ebb903dfd2711dc47f4f581238d9c4.tar.zst
nixpkgs-7aeffe56b0ebb903dfd2711dc47f4f581238d9c4.zip
backblaze-b2: 3.2.0 -> 3.5.0
Diffstat (limited to 'pkgs/development/tools/backblaze-b2')
-rw-r--r--pkgs/development/tools/backblaze-b2/default.nix19
1 files changed, 14 insertions, 5 deletions
diff --git a/pkgs/development/tools/backblaze-b2/default.nix b/pkgs/development/tools/backblaze-b2/default.nix
index 6df8edd02c9..d6b94391e6c 100644
--- a/pkgs/development/tools/backblaze-b2/default.nix
+++ b/pkgs/development/tools/backblaze-b2/default.nix
@@ -2,17 +2,17 @@
 
 python3Packages.buildPythonApplication rec {
   pname = "backblaze-b2";
-  version = "3.2.0";
+  version = "3.5.0";
 
   src = python3Packages.fetchPypi {
     inherit version;
     pname = "b2";
-    sha256 = "sha256-dE4eLTNU6O0DscwN8+m1UaG46dbI0DiWzeJK49GUvKA=";
+    sha256 = "sha256-vyqExulsV0wDijLotPO3RAOk9o4ne0Vq74KJKhSBrvo=";
   };
 
   postPatch = ''
     substituteInPlace requirements.txt \
-      --replace 'docutils==0.16' 'docutils'
+      --replace 'tabulate==0.8.10' 'tabulate'
     substituteInPlace setup.py \
       --replace 'setuptools_scm<6.0' 'setuptools_scm'
   '';
@@ -27,18 +27,27 @@ python3Packages.buildPythonApplication rec {
     setuptools
     docutils
     rst2ansi
+    tabulate
   ];
 
   checkInputs = with python3Packages; [
+    backoff
     pytestCheckHook
   ];
 
+  preCheck = ''
+    export HOME=$(mktemp -d)
+  '';
+
   disabledTests = [
     # require network
     "test_files_headers"
-    "test_copy_file_by_id"
     "test_integration"
-    "test_get_account_info"
+  ];
+
+  disabledTestPaths = [
+    # requires network
+    "test/integration/test_b2_command_line.py"
   ];
 
   postInstall = ''