depot/third_party/nixpkgs/pkgs/development/python-modules/stups-pierone/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

55 lines
1 KiB
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
requests,
stups-cli-support,
stups-zign,
pytestCheckHook,
hypothesis,
pythonOlder,
}:
buildPythonPackage rec {
pname = "stups-pierone";
version = "1.1.51";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "zalando-stups";
repo = "pierone-cli";
rev = version;
hash = "sha256-OypGYHfiFUfcUndylM2N2WfPnfXXJ4gvWypUbltYAYE=";
};
build-system = [ setuptools ];
pythonRelaxDeps = [ "stups-zign" ];
dependencies = [
requests
stups-cli-support
stups-zign
];
preCheck = ''
export HOME=$TEMPDIR
'';
nativeCheckInputs = [
pytestCheckHook
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 ];
};
}