{ stdenv, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  name = "cli53-${version}";
  version = "0.8.8";

  goPackagePath = "github.com/barnybug/cli53";

  src = fetchFromGitHub {
    owner = "barnybug";
    repo = "cli53";
    rev = version;
    sha256 = "1hbx64rn25qzp2xlfwv8xaqyfcax9b6pl30j9vciw7cb346i84gc";
  };

  buildPhase = ''
    pushd go/src/${goPackagePath}/cmd/cli53
    go get .
    popd
  '';

  goDeps = ./deps.nix;

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

{ lib, python2Packages, fetchurl }:

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

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

  propagatedBuildInputs = with python2Packages; [
    argparse
    boto
    dns
  ];

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

Revert "cli53: 0.4.4 -> 0.8.8"
Revert "cli53: 0.4.4 -> 0.8.8"

This reverts commit c25b145815c1a7411621e33e69147c9545833509.
