mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 23:20:55 +00:00
37 lines
768 B
Nix
37 lines
768 B
Nix
{ buildPythonPackage
|
|
, stdenv
|
|
, 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" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Retrieves an SSH public key and installs it locally";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ mkg20001 ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|