Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
90 lines
1.9 KiB
Nix
90 lines
1.9 KiB
Nix
{
|
|
python3,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
lib,
|
|
|
|
plugins ? ps: [ ],
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "peering-manager";
|
|
version = "1.9.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "peering-manager";
|
|
repo = "peering-manager";
|
|
tag = "v${version}";
|
|
sha256 = "sha256-lxelWtiMO6w8Tt7zK/NDdmc3PaKlGibKjSfhD+tGrCU=";
|
|
};
|
|
|
|
format = "other";
|
|
|
|
propagatedBuildInputs =
|
|
with python3.pkgs;
|
|
[
|
|
django
|
|
django-debug-toolbar
|
|
django-filter
|
|
django-postgresql-netfields
|
|
django-prometheus
|
|
django-redis
|
|
django-rq
|
|
django-tables2
|
|
django-taggit
|
|
djangorestframework
|
|
drf-spectacular
|
|
drf-spectacular-sidecar
|
|
dulwich
|
|
jinja2
|
|
markdown
|
|
napalm
|
|
packaging
|
|
psycopg2
|
|
pyixapi
|
|
pynetbox
|
|
pyyaml
|
|
requests
|
|
social-auth-app-django
|
|
tzdata
|
|
]
|
|
++ plugins python3.pkgs;
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
cp peering_manager/configuration{.example,}.py
|
|
python3 manage.py collectstatic --no-input
|
|
rm -f peering_manager/configuration.py
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/opt/peering-manager
|
|
cp -r . $out/opt/peering-manager
|
|
chmod +x $out/opt/peering-manager/manage.py
|
|
makeWrapper $out/opt/peering-manager/manage.py $out/bin/peering-manager \
|
|
--prefix PYTHONPATH : "$PYTHONPATH"
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru = {
|
|
# PYTHONPATH of all dependencies used by the package
|
|
python = python3;
|
|
pythonPath = python3.pkgs.makePythonPath propagatedBuildInputs;
|
|
|
|
tests = {
|
|
inherit (nixosTests) peering-manager;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://peering-manager.net/";
|
|
license = licenses.asl20;
|
|
description = "BGP sessions management tool";
|
|
mainProgram = "peering-manager";
|
|
teams = [ teams.wdz ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|