lol

Merge pull request #299757 from corngood/backblaze-b2

backblaze-b2: 3.15.0 -> 3.17.0

authored by

David McFarland and committed by
GitHub
6f97e216 824952ff

+27 -34
+2 -2
pkgs/development/python-modules/b2sdk/default.nix
··· 19 19 20 20 buildPythonPackage rec { 21 21 pname = "b2sdk"; 22 - version = "1.32.0"; 22 + version = "1.33.0"; 23 23 pyproject = true; 24 24 25 25 disabled = pythonOlder "3.7"; ··· 28 28 owner = "Backblaze"; 29 29 repo = "b2-sdk-python"; 30 30 rev = "refs/tags/v${version}"; 31 - hash = "sha256-xBLMvH51zbrSuBOtMxLeQJt7Wv31OcxBbD72EuLHzuU="; 31 + hash = "sha256-eMFgsjEb0DMTLqG+8IZru1dEAuKZW4dEszrznZxR+mc="; 32 32 }; 33 33 34 34 nativeBuildInputs = [
+25 -32
pkgs/development/tools/backblaze-b2/default.nix
··· 1 - { lib, python3Packages, fetchPypi, installShellFiles, testers, backblaze-b2 1 + { lib 2 + , python3Packages 3 + , fetchFromGitHub 4 + , installShellFiles 5 + , testers 6 + , backblaze-b2 2 7 # executable is renamed to backblaze-b2 by default, to avoid collision with boost's 'b2' 3 8 , execName ? "backblaze-b2" 4 9 }: 5 10 6 11 python3Packages.buildPythonApplication rec { 7 12 pname = "backblaze-b2"; 8 - version = "3.15.0"; 9 - format = "setuptools"; 13 + version = "3.17.0"; 14 + format = "pyproject"; 10 15 11 - src = fetchPypi { 12 - inherit version; 13 - pname = "b2"; 14 - hash = "sha256-10c2zddALy7+CGxhjUC6tMLQcZ3WmLeRY1bNKWunAys="; 16 + src = fetchFromGitHub { 17 + owner = "Backblaze"; 18 + repo = "B2_Command_Line_Tool"; 19 + rev = "v${version}"; 20 + hash = "sha256-Xj7RNe6XM2atijhVasILWRdTzu6xuKBzMllM1z1mFLY="; 15 21 }; 16 - 17 - postPatch = '' 18 - substituteInPlace requirements.txt \ 19 - --replace 'phx-class-registry==4.0.5' 'phx-class-registry' 20 - substituteInPlace requirements.txt \ 21 - --replace 'tabulate==0.8.10' 'tabulate' 22 - substituteInPlace setup.py \ 23 - --replace 'setuptools_scm<6.0' 'setuptools_scm' 24 - ''; 25 22 26 23 nativeBuildInputs = [ 27 24 installShellFiles 28 - python3Packages.setuptools-scm 29 - ]; 25 + ] ++ (with python3Packages; [ 26 + pdm-backend 27 + ]); 30 28 31 29 propagatedBuildInputs = with python3Packages; [ 32 30 argcomplete ··· 46 44 backoff 47 45 more-itertools 48 46 pexpect 49 - 50 - # backblaze-b2 requires pytest 7 to complete tests. 51 - (pytestCheckHook.override { pytest = pytest_7; }) 47 + pytestCheckHook 48 + pytest-xdist 52 49 ]; 53 50 54 51 preCheck = '' 55 52 export HOME=$(mktemp -d) 56 53 ''; 57 54 58 - disabledTests = [ 59 - # require network 60 - "test_files_headers" 61 - "test_integration" 62 - 63 - # fixed by https://github.com/Backblaze/B2_Command_Line_Tool/pull/915 64 - "TestRmConsoleTool" 65 - ]; 66 - 67 55 disabledTestPaths = [ 68 56 # requires network 69 57 "test/integration/test_b2_command_line.py" 58 + "test/integration/test_tqdm_closer.py" 70 59 71 60 # it's hard to make it work on nix 72 61 "test/integration/test_autocomplete.py" 73 - "test/unit/console_tool" 62 + "test/unit/test_console_tool.py" 63 + # this one causes successive tests to fail 64 + "test/unit/_cli/test_autocomplete_cache.py" 74 65 ]; 75 66 76 67 postInstall = lib.optionalString (execName != "b2") '' ··· 88 79 }).overrideAttrs (old: { 89 80 # workaround the error: Permission denied: '/homeless-shelter' 90 81 # backblaze-b2 fails to create a 'b2' directory under the XDG config path 91 - HOME = "$(mktemp -d)"; 82 + preHook = '' 83 + export HOME=$(mktemp -d) 84 + ''; 92 85 }); 93 86 94 87 meta = with lib; {