summary refs log tree commit diff
path: root/pkgs/tools/backup/amazon-glacier-cmd-interface/default.nix
blob: a872060ce21272fbdb6f003392d113db14d8983e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ stdenv, fetchFromGitHub, python2Packages  }:

python2Packages.buildPythonApplication rec {
  pname = "amazon-glacier-cmd-interface";
  version  = "2016-09-01";

  src = fetchFromGitHub {
    owner  = "uskudnik";
    repo   = "amazon-glacier-cmd-interface";
    rev    = "9f28132f9872e1aad9e956e5613b976504e930c8";
    sha256 = "1k5z8kda9v6klr4536pf5qbq9zklxvyysv7nc48gllschl09jywc";
  };

  # argparse is part of the standardlib
  prePatch = ''
    substituteInPlace setup.py --replace "'argparse'," ""
  '';

  propagatedBuildInputs = with python2Packages; [
    boto
    dateutil
    prettytable
    pytz
  ];

  meta = {
    description = "Command line interface for Amazon Glacier";
    homepage    = "https://github.com/uskudnik/amazon-glacier-cmd-interface";
    license     = stdenv.lib.licenses.gpl2;
    maintainers = [ stdenv.lib.maintainers.lovek323 ];
  };

}