mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 23:52:55 +00:00
backblaze-b2: 3.7.0 -> 3.9.0
Changelog: https://github.com/Backblaze/B2_Command_Line_Tool/blob/v3.9.0/CHANGELOG.md
This commit is contained in:
parent
53ffac981f
commit
e6be272cf8
@ -1,13 +1,14 @@
|
||||
{ lib, python3Packages, fetchPypi }:
|
||||
{ lib, python3Packages, fetchPypi, installShellFiles }:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "backblaze-b2";
|
||||
version = "3.7.0";
|
||||
version = "3.9.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit version;
|
||||
pname = "b2";
|
||||
sha256 = "sha256-sW6gaZWUh3WX+0+qHRlQ4gZzKU4bL8ePPNKWo9rdF84=";
|
||||
hash = "sha256-Z9LQapWl0zblcAyMOfKhn5/O1H6+tmgiPQfAB241jqU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@ -19,22 +20,27 @@ python3Packages.buildPythonApplication rec {
|
||||
--replace 'setuptools_scm<6.0' 'setuptools_scm'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = with python3Packages; [
|
||||
setuptools-scm
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
python3Packages.setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
argcomplete
|
||||
arrow
|
||||
b2sdk
|
||||
phx-class-registry
|
||||
setuptools
|
||||
docutils
|
||||
rst2ansi
|
||||
tabulate
|
||||
tqdm
|
||||
];
|
||||
|
||||
nativeCheckInputs = with python3Packages; [
|
||||
backoff
|
||||
more-itertools
|
||||
pexpect
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
@ -46,20 +52,25 @@ python3Packages.buildPythonApplication rec {
|
||||
# require network
|
||||
"test_files_headers"
|
||||
"test_integration"
|
||||
|
||||
# fixed by https://github.com/Backblaze/B2_Command_Line_Tool/pull/915
|
||||
"TestRmConsoleTool"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# requires network
|
||||
"test/integration/test_b2_command_line.py"
|
||||
|
||||
# it's hard to make it work on nix
|
||||
"test/integration/test_autocomplete.py"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
mv "$out/bin/b2" "$out/bin/backblaze-b2"
|
||||
|
||||
sed 's/b2/backblaze-b2/' -i contrib/bash_completion/b2
|
||||
|
||||
mkdir -p "$out/share/bash-completion/completions"
|
||||
cp contrib/bash_completion/b2 "$out/share/bash-completion/completions/backblaze-b2"
|
||||
installShellCompletion --cmd backblaze-b2 \
|
||||
--bash <(${python3Packages.argcomplete}/bin/register-python-argcomplete backblaze-b2) \
|
||||
--zsh <(${python3Packages.argcomplete}/bin/register-python-argcomplete backblaze-b2)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user