python313Packages.traits: fix build (#373698)
[NixPkgs.git] / pkgs / development / python-modules / stups-pierone / default.nix
blob1415e07ab1afc9fc058ca2816d17cd9b3ccacdd6
2   lib,
3   fetchFromGitHub,
4   buildPythonPackage,
5   setuptools,
6   requests,
7   stups-cli-support,
8   stups-zign,
9   pytestCheckHook,
10   hypothesis,
11   pythonOlder,
14 buildPythonPackage rec {
15   pname = "stups-pierone";
16   version = "1.1.51";
17   pyproject = true;
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "zalando-stups";
23     repo = "pierone-cli";
24     rev = version;
25     hash = "sha256-OypGYHfiFUfcUndylM2N2WfPnfXXJ4gvWypUbltYAYE=";
26   };
28   build-system = [ setuptools ];
30   pythonRelaxDeps = [ "stups-zign" ];
32   dependencies = [
33     requests
34     stups-cli-support
35     stups-zign
36   ];
38   preCheck = ''
39     export HOME=$TEMPDIR
40   '';
42   nativeCheckInputs = [
43     pytestCheckHook
44     hypothesis
45   ];
47   pythonImportsCheck = [ "pierone" ];
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   };