peering-manager: 1.8.3 -> 1.9.6

This commit is contained in:
Jennifer Graul
2025-07-28 13:17:33 +02:00
parent dc71c8cc49
commit 9527b262b0
2 changed files with 6 additions and 40 deletions
@@ -1,30 +0,0 @@
From ee558ff66e467412942559a8a92252e3fc009920 Mon Sep 17 00:00:00 2001
From: Guillaume Mazoyer <guillaume@mazoyer.eu>
Date: Wed, 21 Feb 2024 23:32:32 +0100
Subject: [PATCH] Use pyixapi 0.2.3
---
diff --git a/extras/models/ixapi.py b/extras/models/ixapi.py
index 65572c971e065e3deed69465a71a54b4e1372851..637a004043e0a044c65a5e37fbb2b3bf82965436 100644
--- a/extras/models/ixapi.py
+++ b/extras/models/ixapi.py
@@ -7,7 +7,6 @@
from django.db import models
from django.db.models import Q
from django.urls import reverse
-from django.utils.timezone import make_aware
from peering_manager.models import ChangeLoggedModel
@@ -117,9 +116,9 @@ def dial(self):
if auth:
# Save tokens if they've changed
self.access_token = api.access_token.encoded
- self.access_token_expiration = make_aware(api.access_token.expires_at)
+ self.access_token_expiration = api.access_token.expires_at
self.refresh_token = api.refresh_token.encoded
- self.refresh_token_expiration = make_aware(api.refresh_token.expires_at)
+ self.refresh_token_expiration = api.refresh_token.expires_at
self.save()
return api
+6 -10
View File
@@ -9,38 +9,33 @@
python3.pkgs.buildPythonApplication rec {
pname = "peering-manager";
version = "1.8.3";
version = "1.9.6";
src = fetchFromGitHub {
owner = "peering-manager";
repo = "peering-manager";
tag = "v${version}";
sha256 = "sha256-UV1zSX9C9y5faOBUQ7bfj2DT6ffhMW28MIT7SaYjMgw=";
sha256 = "sha256-XPnov+pvO0H1ucMuSXs2tpYRE87jpfDiBDUFjnEhydA=";
};
format = "other";
patches = [
# Fix compatibility with pyixapi 0.2.3
# https://github.com/peering-manager/peering-manager/commit/ee558ff66e467412942559a8a92252e3fc009920
./fix-pyixapi-0.2.3-compatibility.patch
];
propagatedBuildInputs =
with python3.pkgs;
[
django
djangorestframework
django-redis
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
@@ -50,6 +45,7 @@ python3.pkgs.buildPythonApplication rec {
pynetbox
pyyaml
requests
social-auth-app-django
tzdata
]
++ plugins python3.pkgs;