summary refs log tree commit diff
path: root/pkgs/tools/admin/cli53/default.nix
blob: e70a7ba9b50cddc7993cfc7387cb279644673c25 (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
34
35
{ lib, python2, fetchurl }:

python2.pkgs.buildPythonApplication rec {
  name = "cli53-${version}";
  version = "0.4.4";

  src = fetchurl {
    url = "mirror://pypi/c/cli53/${name}.tar.gz";
    sha256 = "0s9jzigq6a16m2c3qklssx2lz16cf13g5zh80vh24kxazaxqzbig";
  };

  postPatch = ''
    substituteInPlace setup.py --replace "'argparse', " ""
  '';

  checkPhase = ''
    ${python2.interpreter} -m unittest discover -s tests
  '';

  # Tests do not function
  doCheck = false;

  propagatedBuildInputs = with python2.pkgs; [
    argparse
    boto
    dnspython
  ];

  meta = with lib; {
    description = "CLI tool for the Amazon Route 53 DNS service";
    homepage = https://github.com/barnybug/cli53;
    license = licenses.mit;
    maintainers = with maintainers; [ benley ];
  };
}