summary refs log tree commit diff
path: root/pkgs/development/python-modules/stups-cli-support/default.nix
blob: 97a7d6ebbdda0919520f61c9780a1c7771fbae76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ lib
, fetchFromGitHub
, buildPythonPackage
, clickclick
, dnspython
, requests
, pytest
, pytest-cov
, isPy3k
}:

buildPythonPackage rec {
  pname = "stups-cli-support";
  version = "1.1.20";
  disabled = !isPy3k;

  src = fetchFromGitHub {
    owner = "zalando-stups";
    repo = "stups-cli-support";
    rev = version;
    sha256 = "1r6g29gd009p87m8a6wv4rzx7f0564zdv67qz5xys4wsgvc95bx0";
  };

  propagatedBuildInputs = [
    clickclick
    dnspython
    requests
  ];

  preCheck = "export HOME=$TEMPDIR";

  checkInputs = [
    pytest
    pytest-cov
  ];

  meta = with lib; {
    description = "Helper library for all STUPS command line tools.";
    homepage = "https://github.com/zalando-stups/stups-cli-support";
    license = licenses.asl20;
    maintainers = [ maintainers.mschuwalow ];
  };
}