depot/third_party/nixpkgs/pkgs/tools/admin/ssh-import-id/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

36 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;
};
}