python3Packages.stups-pierone: add pythonImportsCheck
This commit is contained in:
parent
ca6761aede
commit
02a09c627d
@ -7,19 +7,21 @@
|
|||||||
, pytest
|
, pytest
|
||||||
, pytest-cov
|
, pytest-cov
|
||||||
, hypothesis
|
, hypothesis
|
||||||
, isPy3k
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "stups-pierone";
|
pname = "stups-pierone";
|
||||||
version = "1.1.50";
|
version = "1.1.50";
|
||||||
disabled = !isPy3k;
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "zalando-stups";
|
owner = "zalando-stups";
|
||||||
repo = "pierone-cli";
|
repo = "pierone-cli";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-YAoj+Ou0Q64QRN5R0CQSxQGP7xDQQNISS6VT5txV0sw=";
|
hash = "sha256-YAoj+Ou0Q64QRN5R0CQSxQGP7xDQQNISS6VT5txV0sw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
@ -28,9 +30,9 @@ buildPythonPackage rec {
|
|||||||
stups-zign
|
stups-zign
|
||||||
];
|
];
|
||||||
|
|
||||||
preCheck = "
|
preCheck = ''
|
||||||
export HOME=$TEMPDIR
|
export HOME=$TEMPDIR
|
||||||
";
|
'';
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytest
|
pytest
|
||||||
@ -38,10 +40,14 @@ buildPythonPackage rec {
|
|||||||
hypothesis
|
hypothesis
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"pierone"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Convenient command line client for STUPS' Pier One Docker registry";
|
description = "Convenient command line client for STUPS' Pier One Docker registry";
|
||||||
homepage = "https://github.com/zalando-stups/pierone-cli";
|
homepage = "https://github.com/zalando-stups/pierone-cli";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [ maintainers.mschuwalow ];
|
maintainers = with maintainers; [ mschuwalow ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user