Merge pull request #186684 from tomhoule/update-backblaze-b2-to-3-5-0

backblaze-b2: 3.2.0 -> 3.5.0
This commit is contained in:
Kevin Cox 2022-08-15 21:02:34 -07:00 committed by GitHub
commit a1fc26b1eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = ''
@ -54,6 +63,6 @@ python3Packages.buildPythonApplication rec {
description = "Command-line tool for accessing the Backblaze B2 storage service";
homepage = "https://github.com/Backblaze/B2_Command_Line_Tool";
license = licenses.mit;
maintainers = with maintainers; [ hrdinka kevincox ];
maintainers = with maintainers; [ hrdinka kevincox tomhoule ];
};
}