backblaze-b2: 1.1.0 -> 1.3.6 (#45929)

Changelog: https://github.com/Backblaze/B2_Command_Line_Tool#release-history
This commit is contained in:
Daniël de Kok 2018-09-02 08:45:09 +02:00 committed by xeji
parent a3434cf4e5
commit ffde2e71bc

View File

@ -4,13 +4,13 @@
buildPythonApplication rec {
pname = "backblaze-b2";
version = "1.1.0";
version = "1.3.6";
src = fetchFromGitHub {
owner = "Backblaze";
repo = "B2_Command_Line_Tool";
rev = "v${version}";
sha256 = "0697rcdsmxz51p4b8m8klx2mf5xnx6vx56vcf5jmzidh8mc38a6z";
sha256 = "12axb0c56razfhrx1l62sjvdrbg6vz0yyqph2mxyjza1ywpb93b5";
};
propagatedBuildInputs = [ arrow futures logfury requests six tqdm ];
@ -19,6 +19,17 @@ buildPythonApplication rec {
python test_b2_command_line.py test
'';
postPatch = ''
# b2 uses an upper bound on arrow, because arrow 0.12.1 is not
# compatible with Python 2.6:
#
# https://github.com/crsmithdev/arrow/issues/517
#
# However, since we use Python 2.7, newer versions of arrow are fine.
sed -i 's/,<0.12.1//g' requirements.txt
'';
postInstall = ''
mv "$out/bin/b2" "$out/bin/backblaze-b2"