depot/third_party/nixpkgs/pkgs/development/python-modules/stups-pierone/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

53 lines
956 B
Nix

{ lib
, fetchFromGitHub
, buildPythonPackage
, requests
, stups-cli-support
, stups-zign
, pytest
, pytest-cov
, hypothesis
, pythonOlder
}:
buildPythonPackage rec {
pname = "stups-pierone";
version = "1.1.51";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "zalando-stups";
repo = "pierone-cli";
rev = version;
hash = "sha256-OypGYHfiFUfcUndylM2N2WfPnfXXJ4gvWypUbltYAYE=";
};
propagatedBuildInputs = [
requests
stups-cli-support
stups-zign
];
preCheck = ''
export HOME=$TEMPDIR
'';
nativeCheckInputs = [
pytest
pytest-cov
hypothesis
];
pythonImportsCheck = [
"pierone"
];
meta = with lib; {
description = "Convenient command line client for STUPS' Pier One Docker registry";
homepage = "https://github.com/zalando-stups/pierone-cli";
license = licenses.asl20;
maintainers = with maintainers; [ mschuwalow ];
};
}