2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
python3,
|
|
|
|
makeWrapper,
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "htgettoken";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "2.0-2";
|
2024-09-19 14:19:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fermitools";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-1rF72zo/Jj4ZeEG2Nk6Wla+AfaDo5iPZhZP1j9WAK5I=";
|
2024-09-19 14:19:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
setuptools
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = with python3.pkgs; ''
|
|
|
|
wrapProgram $out/bin/htgettoken \
|
|
|
|
--set PYTHONPATH "${
|
|
|
|
makePythonPath [
|
|
|
|
gssapi
|
|
|
|
paramiko
|
|
|
|
urllib3
|
|
|
|
]
|
|
|
|
}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Gets OIDC authentication tokens for High Throughput Computing via a Hashicorp vault server ";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
homepage = "https://github.com/fermitools/htgettoken";
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|