1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 setuptools,
6 requests,
7 stups-cli-support,
8 stups-zign,
9 pytestCheckHook,
10 hypothesis,
11 pythonOlder,
12}:
13
14buildPythonPackage rec {
15 pname = "stups-pierone";
16 version = "1.1.51";
17 pyproject = true;
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 build-system = [ setuptools ];
29
30 pythonRelaxDeps = [ "stups-zign" ];
31
32 dependencies = [
33 requests
34 stups-cli-support
35 stups-zign
36 ];
37
38 preCheck = ''
39 export HOME=$TEMPDIR
40 '';
41
42 nativeCheckInputs = [
43 pytestCheckHook
44 hypothesis
45 ];
46
47 pythonImportsCheck = [ "pierone" ];
48
49 meta = with lib; {
50 description = "Convenient command line client for STUPS' Pier One Docker registry";
51 homepage = "https://github.com/zalando-stups/pierone-cli";
52 license = licenses.asl20;
53 maintainers = with maintainers; [ mschuwalow ];
54 };
55}