1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 clickclick,
6 dnspython,
7 requests,
8 pytest,
9 pytest-cov,
10 isPy3k,
11}:
12
13buildPythonPackage rec {
14 pname = "stups-cli-support";
15 version = "1.1.20";
16 format = "setuptools";
17 disabled = !isPy3k;
18
19 src = fetchFromGitHub {
20 owner = "zalando-stups";
21 repo = "stups-cli-support";
22 rev = version;
23 sha256 = "1r6g29gd009p87m8a6wv4rzx7f0564zdv67qz5xys4wsgvc95bx0";
24 };
25
26 propagatedBuildInputs = [
27 clickclick
28 dnspython
29 requests
30 ];
31
32 preCheck = "export HOME=$TEMPDIR";
33
34 nativeCheckInputs = [
35 pytest
36 pytest-cov
37 ];
38
39 meta = with lib; {
40 description = "Helper library for all STUPS command line tools.";
41 homepage = "https://github.com/zalando-stups/stups-cli-support";
42 license = licenses.asl20;
43 maintainers = [ maintainers.mschuwalow ];
44 };
45}