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