backblaze-b2: 3.2.0 -> 3.5.0

This commit is contained in:
Tom Houlé 2022-08-14 18:47:13 +02:00
parent bc4b4a50c7
commit 7aeffe56b0

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 = ''