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