cli53: 0.4.4 -> 0.8.12

This is bigger change than the version would imply as the author has
rewritten in Go and no longer supports the Python app.
This commit is contained in:
Casey Ransom
2018-08-16 10:42:47 -04:00
parent c61b20396f
commit 27d4088eb4
2 changed files with 103 additions and 23 deletions
+12 -22
View File
@@ -1,30 +1,20 @@
{ lib, python2, fetchurl }:
# This file was generated by https://github.com/kamilchm/go2nix v2.0-dev
{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
python2.pkgs.buildPythonApplication rec {
buildGoPackage rec {
name = "cli53-${version}";
version = "0.4.4";
version = "0.8.12";
src = fetchurl {
url = "mirror://pypi/c/cli53/${name}.tar.gz";
sha256 = "0s9jzigq6a16m2c3qklssx2lz16cf13g5zh80vh24kxazaxqzbig";
goPackagePath = "github.com/barnybug/cli53";
src = fetchFromGitHub {
owner = "barnybug";
repo = "cli53";
rev = "2624c7c4b38a33cdbd166dad1d3e512830f453e4";
sha256 = "0bhczmzrgf7ypnhhzdrgnvg8cw8ch1x1d0cgajc5kklq9ixv9ygi";
};
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
];
goDeps = ./deps.nix;
meta = with lib; {
description = "CLI tool for the Amazon Route 53 DNS service";