depot/third_party/nixpkgs/pkgs/development/python-modules/stups-pierone/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

47 lines
859 B
Nix

{ lib
, fetchFromGitHub
, buildPythonPackage
, requests
, stups-cli-support
, stups-zign
, pytest
, pytest-cov
, hypothesis
, isPy3k
}:
buildPythonPackage rec {
pname = "stups-pierone";
version = "1.1.49";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "zalando-stups";
repo = "pierone-cli";
rev = version;
sha256 = "1kb1lpnxbcq821mx75vzapndvxfvsdrplyhsqjq4vdhyqrx2dn3q";
};
propagatedBuildInputs = [
requests
stups-cli-support
stups-zign
];
preCheck = "
export HOME=$TEMPDIR
";
checkInputs = [
pytest
pytest-cov
hypothesis
];
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 ];
};
}