1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 requests,
6 stups-cli-support,
7 stups-zign,
8 pytest,
9 pytest-cov,
10 hypothesis,
11 pythonOlder,
12}:
13
14buildPythonPackage rec {
15 pname = "stups-pierone";
16 version = "1.1.51";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchFromGitHub {
22 owner = "zalando-stups";
23 repo = "pierone-cli";
24 rev = version;
25 hash = "sha256-OypGYHfiFUfcUndylM2N2WfPnfXXJ4gvWypUbltYAYE=";
26 };
27
28 propagatedBuildInputs = [
29 requests
30 stups-cli-support
31 stups-zign
32 ];
33
34 preCheck = ''
35 export HOME=$TEMPDIR
36 '';
37
38 nativeCheckInputs = [
39 pytest
40 pytest-cov
41 hypothesis
42 ];
43
44 pythonImportsCheck = [ "pierone" ];
45
46 meta = with lib; {
47 description = "Convenient command line client for STUPS' Pier One Docker registry";
48 homepage = "https://github.com/zalando-stups/pierone-cli";
49 license = licenses.asl20;
50 maintainers = with maintainers; [ mschuwalow ];
51 };
52}