add script to fetch netbox data and write to local files
This commit is contained in:
parent
5a0cd84dd5
commit
eab11d4a5b
6 changed files with 96 additions and 2 deletions
packages/fetch-netbox-data
23
packages/fetch-netbox-data/default.nix
Normal file
23
packages/fetch-netbox-data/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ python3 }:
|
||||
python3.pkgs.buildPythonApplication {
|
||||
name = "fetch-netbox-data";
|
||||
version = "1.0.0";
|
||||
src = ./.;
|
||||
pyproject = false;
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
pynetbox
|
||||
dnspython
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm755 ./fetch-netbox-data.py $out/bin/fetch-netbox-data
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
mainProgram = "fetch-netbox-data";
|
||||
platforms = python3.meta.platforms;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue