2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, requests
|
|
|
|
, stups-cli-support
|
|
|
|
, stups-zign
|
|
|
|
, pytest
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-cov
|
2020-04-24 23:36:52 +00:00
|
|
|
, hypothesis
|
2022-03-10 19:12:11 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "stups-pierone";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "1.1.51";
|
2022-03-10 19:12:11 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zalando-stups";
|
|
|
|
repo = "pierone-cli";
|
|
|
|
rev = version;
|
2022-03-30 09:31:56 +00:00
|
|
|
hash = "sha256-OypGYHfiFUfcUndylM2N2WfPnfXXJ4gvWypUbltYAYE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
stups-cli-support
|
|
|
|
stups-zign
|
|
|
|
];
|
|
|
|
|
2022-03-10 19:12:11 +00:00
|
|
|
preCheck = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
export HOME=$TEMPDIR
|
2022-03-10 19:12:11 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
2021-07-24 12:14:16 +00:00
|
|
|
pytest-cov
|
2020-04-24 23:36:52 +00:00
|
|
|
hypothesis
|
|
|
|
];
|
|
|
|
|
2022-03-10 19:12:11 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pierone"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
2022-03-10 19:12:11 +00:00
|
|
|
maintainers = with maintainers; [ mschuwalow ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|