1{ lib, python2, fetchurl }:
2
3python2.pkgs.buildPythonApplication rec {
4 name = "cli53-${version}";
5 version = "0.4.4";
6
7 src = fetchurl {
8 url = "mirror://pypi/c/cli53/${name}.tar.gz";
9 sha256 = "0s9jzigq6a16m2c3qklssx2lz16cf13g5zh80vh24kxazaxqzbig";
10 };
11
12 postPatch = ''
13 substituteInPlace setup.py --replace "'argparse', " ""
14 '';
15
16 checkPhase = ''
17 ${python2.interpreter} -m unittest discover -s tests
18 '';
19
20 # Tests do not function
21 doCheck = false;
22
23 propagatedBuildInputs = with python2.pkgs; [
24 argparse
25 boto
26 dnspython
27 ];
28
29 meta = with lib; {
30 description = "CLI tool for the Amazon Route 53 DNS service";
31 homepage = https://github.com/barnybug/cli53;
32 license = licenses.mit;
33 maintainers = with maintainers; [ benley ];
34 };
35}