657f08b14c
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
63 lines
1.3 KiB
Nix
63 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
extraHandlers ? [ ],
|
|
fetchgit,
|
|
installShellFiles,
|
|
makeWrapper,
|
|
python3Packages,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "ssh-import-id";
|
|
version = "5.11";
|
|
pyproject = true;
|
|
|
|
src = fetchgit {
|
|
url = "https://git.launchpad.net/ssh-import-id";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-tYbaJGH59qyvjp4kwo3ZFVs0EaE0Lsd2CQ6iraFkAdI=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace-fail "long_description_content_type='markdown'" "long_description_content_type='text/markdown'"
|
|
'';
|
|
|
|
build-system = with python3Packages; [ setuptools ];
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
installShellFiles
|
|
];
|
|
|
|
dependencies =
|
|
with python3Packages;
|
|
[
|
|
requests
|
|
distro
|
|
]
|
|
++ extraHandlers;
|
|
|
|
postInstall = ''
|
|
installManPage $src/usr/share/man/man1/ssh-import-id.1
|
|
'';
|
|
|
|
# Handlers require main bin, main bin requires handlers
|
|
makeWrapperArgs = [
|
|
"--prefix"
|
|
":"
|
|
"$out/bin"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Retrieves an SSH public key and installs it locally";
|
|
homepage = "https://launchpad.net/ssh-import-id";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [
|
|
mkg20001
|
|
viraptor
|
|
];
|
|
mainProgram = "ssh-import-id";
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|