Merge pull request #32251 from dtulig/upgrade-backblaze-b2

backblaze-b2: 0.6.2 -> 1.1.0
This commit is contained in:
Orivej Desh 2017-12-17 14:14:24 +00:00 committed by GitHub
commit 8bcd948072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 9 deletions

View File

@ -1,17 +1,19 @@
{ fetchFromGitHub, makeWrapper, pythonPackages, stdenv }:
{ lib, buildPythonApplication, fetchFromGitHub, makeWrapper
, arrow, futures, logfury, requests, six, tqdm
}:
pythonPackages.buildPythonApplication rec {
name = "backblaze-b2-${version}";
version = "0.6.2";
buildPythonApplication rec {
pname = "backblaze-b2";
version = "1.1.0";
src = fetchFromGitHub {
owner = "Backblaze";
repo = "B2_Command_Line_Tool";
rev = "3a4cd3f0b5309f79f98c2e0d51afc19fb2fe4201";
sha256 = "1gl1z7zg3s1xgx45i6b1bvx9iwviiiinl4my00h66qkhrw7ag8p1";
rev = "v${version}";
sha256 = "0697rcdsmxz51p4b8m8klx2mf5xnx6vx56vcf5jmzidh8mc38a6z";
};
propagatedBuildInputs = with pythonPackages; [ futures requests six tqdm ];
propagatedBuildInputs = [ arrow futures logfury requests six tqdm ];
checkPhase = ''
python test_b2_command_line.py test
@ -27,7 +29,7 @@ pythonPackages.buildPythonApplication rec {
cp contrib/bash_completion/b2 "$out/etc/bash_completion.d/backblaze-b2"
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Command-line tool for accessing the Backblaze B2 storage service";
homepage = https://github.com/Backblaze/B2_Command_Line_Tool;
license = licenses.mit;

View File

@ -703,7 +703,7 @@ with pkgs;
azureus = callPackage ../tools/networking/p2p/azureus { };
backblaze-b2 = callPackage ../development/tools/backblaze-b2 { };
backblaze-b2 = python.pkgs.callPackage ../development/tools/backblaze-b2 { };
backup = callPackage ../tools/backup/backup { };