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