git.iko.soy/typeable/nixpkgs
on master help sign in
backblaze-b2: 1.1.0 -> 1.3.6 (#45929)

Changelog: https://github.com/Backblaze/B2_Command_Line_Tool#release-history

commitffde2e71bc8e12c57ddc79504edd8e883cd7d293 authorDaniël de Kok <me@github.danieldk.eu> dateSun 2 Sep 2018, 08:45 (8 years ago) parenta3434cf
1 file changed+13−2
pkgs/development/tools/backblaze-b2/default.nix+13−2
pkgs/development/tools/backblaze-b2/default.nix+13−2
@@ -4,13 +4,13 @@
44
55buildPythonApplication rec {
66 pname = "backblaze-b2";
7− version = "1.1.0";
7+ version = "1.3.6";
88
99 src = fetchFromGitHub {
1010 owner = "Backblaze";
1111 repo = "B2_Command_Line_Tool";
1212 rev = "v${version}";
13− sha256 = "0697rcdsmxz51p4b8m8klx2mf5xnx6vx56vcf5jmzidh8mc38a6z";
13+ sha256 = "12axb0c56razfhrx1l62sjvdrbg6vz0yyqph2mxyjza1ywpb93b5";
1414 };
1515
1616 propagatedBuildInputs = [ arrow futures logfury requests six tqdm ];
@@ -19,6 +19,17 @@ buildPythonApplication rec {
1919 python test_b2_command_line.py test
2020 '';
2121
22+ postPatch = ''
23+ # b2 uses an upper bound on arrow, because arrow 0.12.1 is not
24+ # compatible with Python 2.6:
25+ #
26+ # https://github.com/crsmithdev/arrow/issues/517
27+ #
28+ # However, since we use Python 2.7, newer versions of arrow are fine.
29+
30+ sed -i 's/,<0.12.1//g' requirements.txt
31+ '';
32+
2233 postInstall = ''
2334 mv "$out/bin/b2" "$out/bin/backblaze-b2"
2435