forked from mirrors/nixpkgs
python3Packages.stups-pierone: add pythonImportsCheck
This commit is contained in:
parent
ca6761aede
commit
02a09c627d
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue