2017-07-29 11:03:07 +00:00
|
|
|
{ lib, python2, fetchurl }:
|
2015-05-24 01:38:51 +00:00
|
|
|
|
2017-07-29 11:03:07 +00:00
|
|
|
python2.pkgs.buildPythonApplication rec {
|
2015-05-24 01:38:51 +00:00
|
|
|
name = "cli53-${version}";
|
2017-06-20 12:04:14 +00:00
|
|
|
version = "0.4.4";
|
2015-05-24 01:38:51 +00:00
|
|
|
|
2017-06-20 12:04:14 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/c/cli53/${name}.tar.gz";
|
|
|
|
sha256 = "0s9jzigq6a16m2c3qklssx2lz16cf13g5zh80vh24kxazaxqzbig";
|
2015-05-24 01:38:51 +00:00
|
|
|
};
|
|
|
|
|
2017-07-29 11:03:07 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "'argparse', " ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python2.interpreter} -m unittest discover -s tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Tests do not function
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python2.pkgs; [
|
2017-06-20 12:04:14 +00:00
|
|
|
argparse
|
|
|
|
boto
|
2017-12-10 14:27:06 +00:00
|
|
|
dnspython
|
2017-06-20 12:04:14 +00:00
|
|
|
];
|
2015-05-24 01:38:51 +00:00
|
|
|
|
2017-06-21 23:59:41 +00:00
|
|
|
meta = with lib; {
|
2015-05-24 01:38:51 +00:00
|
|
|
description = "CLI tool for the Amazon Route 53 DNS service";
|
|
|
|
homepage = https://github.com/barnybug/cli53;
|
2017-06-18 12:14:10 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ benley ];
|
2015-05-24 01:38:51 +00:00
|
|
|
};
|
|
|
|
}
|