summary refs log tree commit diff
path: root/pkgs/development/python-modules/stups-pierone/default.nix
blob: f627f0e7231e67d98cabc08a9187a6c57df01f7a (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
44
45
46
47
48
49
50
51
52
53
{ lib
, fetchFromGitHub
, buildPythonPackage
, requests
, stups-cli-support
, stups-zign
, pytest
, pytest-cov
, hypothesis
, pythonOlder
}:

buildPythonPackage rec {
  pname = "stups-pierone";
  version = "1.1.50";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "zalando-stups";
    repo = "pierone-cli";
    rev = version;
    hash = "sha256-YAoj+Ou0Q64QRN5R0CQSxQGP7xDQQNISS6VT5txV0sw=";
  };

  propagatedBuildInputs = [
    requests
    stups-cli-support
    stups-zign
  ];

  preCheck = ''
    export HOME=$TEMPDIR
  '';

  checkInputs = [
    pytest
    pytest-cov
    hypothesis
  ];

  pythonImportsCheck = [
    "pierone"
  ];

  meta = with lib; {
    description = "Convenient command line client for STUPS' Pier One Docker registry";
    homepage = "https://github.com/zalando-stups/pierone-cli";
    license = licenses.asl20;
    maintainers = with maintainers; [ mschuwalow ];
  };
}