b2: git-26.01.2016 -> 0.4.4

Also fix the dependency on Python.
This commit is contained in:
Eelco Dolstra 2016-03-15 21:18:35 +01:00
parent f29c07b464
commit e2c426f719

View file

@ -1,24 +1,17 @@
{ fetchFromGitHub, pythonPackages, stdenv }: { fetchFromGitHub, pythonPackages, stdenv }:
stdenv.mkDerivation rec { pythonPackages.buildPythonPackage rec {
name = "b2-${version}"; name = "b2-${version}";
version = "git-26.01.2016"; version = "0.4.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Backblaze"; owner = "Backblaze";
repo = "B2_Command_Line_Tool"; repo = "B2_Command_Line_Tool";
rev = "b3f06fd53eb1c9a07740b962284753cba413a7b8"; rev = "v${version}";
sha256 = "0kn2lkh8hp6g8q88glyz03z1r8a47pqm91dc5w083i334swqkjp2"; sha256 = "1g9j5s69w6n70nb18rvx3gm9f4gi1vis23ib8rn2v1khv6z2acqp";
}; };
buildInputs = [ pythonPackages.wrapPython ]; pythonPath = [ pythonPackages.six ];
installPhase = ''
mkdir -p $out/bin
cp b2 $out/bin
'';
postInstall = "wrapPythonPrograms";
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://github.com/Backblaze/B2_Command_Line_Tool; homepage = https://github.com/Backblaze/B2_Command_Line_Tool;