nixpkgs/pkgs/tools/admin/cli53/default.nix

36 lines
780 B
Nix
Raw Normal View History

2017-07-29 12:03:07 +01:00
{ lib, python2, fetchurl }:
2017-07-29 12:03:07 +01:00
python2.pkgs.buildPythonApplication rec {
name = "cli53-${version}";
version = "0.4.4";
src = fetchurl {
url = "mirror://pypi/c/cli53/${name}.tar.gz";
sha256 = "0s9jzigq6a16m2c3qklssx2lz16cf13g5zh80vh24kxazaxqzbig";
};
2017-07-29 12:03:07 +01: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; [
argparse
boto
dns
];
2017-06-22 00:59:41 +01:00
meta = with lib; {
description = "CLI tool for the Amazon Route 53 DNS service";
homepage = https://github.com/barnybug/cli53;
2017-06-18 13:14:10 +01:00
license = licenses.mit;
maintainers = with maintainers; [ benley ];
};
}