Files
nixpkgs/pkgs/by-name/ht/htgettoken/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

43 lines
908 B
Nix

{
lib,
fetchFromGitHub,
python3,
makeWrapper,
}:
python3.pkgs.buildPythonApplication rec {
pname = "htgettoken";
version = "2.4";
format = "setuptools";
src = fetchFromGitHub {
owner = "fermitools";
repo = "htgettoken";
tag = "v${version}";
hash = "sha256-3xBACXxH5G1MO2dNFFSL1Rssc8RdauvLZ4Tx2djOgyw=";
};
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 ];
};
}