2020-02-25 14:59:34 +00:00
|
|
|
{ buildPythonPackage
|
2021-01-25 08:26:54 +00:00
|
|
|
, lib
|
2020-02-25 14:59:34 +00:00
|
|
|
, fetchgit
|
|
|
|
, requests
|
2021-02-26 02:07:07 +00:00
|
|
|
, distro
|
2020-02-25 14:59:34 +00:00
|
|
|
, makeWrapper
|
|
|
|
, extraHandlers ? []
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ssh-import-id";
|
2021-02-26 02:07:07 +00:00
|
|
|
version = "5.11";
|
2020-02-25 14:59:34 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.launchpad.net/ssh-import-id";
|
|
|
|
rev = version;
|
2021-02-26 02:07:07 +00:00
|
|
|
sha256 = "sha256-tYbaJGH59qyvjp4kwo3ZFVs0EaE0Lsd2CQ6iraFkAdI=";
|
2020-02-25 14:59:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
2021-02-26 02:07:07 +00:00
|
|
|
distro
|
2020-02-25 14:59:34 +00:00
|
|
|
] ++ extraHandlers;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
# handlers require main bin, main bin requires handlers
|
|
|
|
makeWrapperArgs = [ "--prefix" ":" "$out/bin" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-02-25 14:59:34 +00:00
|
|
|
description = "Retrieves an SSH public key and installs it locally";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ mkg20001 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|