python3Packages.stups-pierone: add pythonImportsCheck

This commit is contained in:
Fabian Affolter 2022-03-07 10:18:19 +01:00 committed by GitHub
parent ca6761aede
commit 02a09c627d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,19 +7,21 @@
, pytest
, pytest-cov
, hypothesis
, isPy3k
, pythonOlder
}:
buildPythonPackage rec {
pname = "stups-pierone";
version = "1.1.50";
disabled = !isPy3k;
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "zalando-stups";
repo = "pierone-cli";
rev = version;
sha256 = "sha256-YAoj+Ou0Q64QRN5R0CQSxQGP7xDQQNISS6VT5txV0sw=";
hash = "sha256-YAoj+Ou0Q64QRN5R0CQSxQGP7xDQQNISS6VT5txV0sw=";
};
propagatedBuildInputs = [
@ -28,9 +30,9 @@ buildPythonPackage rec {
stups-zign
];
preCheck = "
preCheck = ''
export HOME=$TEMPDIR
";
'';
checkInputs = [
pytest
@ -38,10 +40,14 @@ buildPythonPackage rec {
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 = [ maintainers.mschuwalow ];
maintainers = with maintainers; [ mschuwalow ];
};
}