git: b22b137600ab - 2026Q2 - security/py-netbox-secrets: Update to 3.0.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Apr 2026 12:35:13 UTC
The branch 2026Q2 has been updated by kai:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b22b137600ab701791cee4cd7e606fbed9f59fd5
commit b22b137600ab701791cee4cd7e606fbed9f59fd5
Author: Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2026-04-17 12:21:35 +0000
Commit: Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2026-04-17 12:34:26 +0000
security/py-netbox-secrets: Update to 3.0.1
* Remove patches that are no longer needed.
Changelog:
https://github.com/Onemind-Services-LLC/netbox-secrets/releases/tag/v3.0.1
MFH: 2026Q2
(cherry picked from commit f2e7efda0deb21178521f6b341ace8f3dedb3f64)
---
security/py-netbox-secrets/Makefile | 3 +-
security/py-netbox-secrets/distinfo | 6 +--
.../files/patch-netbox__secrets_api_views.py | 55 ----------------------
.../files/patch-netbox__secrets_graphql_filters.py | 30 ------------
4 files changed, 4 insertions(+), 90 deletions(-)
diff --git a/security/py-netbox-secrets/Makefile b/security/py-netbox-secrets/Makefile
index 15a7f8ec7100..847737cb6a39 100644
--- a/security/py-netbox-secrets/Makefile
+++ b/security/py-netbox-secrets/Makefile
@@ -1,6 +1,5 @@
PORTNAME= netbox-secrets
-DISTVERSION= 3.0.0
-PORTREVISION= 1
+DISTVERSION= 3.0.1
CATEGORIES= security python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/security/py-netbox-secrets/distinfo b/security/py-netbox-secrets/distinfo
index c8ea1e0d7743..e986a81aaaf1 100644
--- a/security/py-netbox-secrets/distinfo
+++ b/security/py-netbox-secrets/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1771962228
-SHA256 (netbox_secrets-3.0.0.tar.gz) = 2657bbe21360f13a3279ac5944fe3417f4506cc15bbb35ea94ddcbe454d1ae95
-SIZE (netbox_secrets-3.0.0.tar.gz) = 61240
+TIMESTAMP = 1776345623
+SHA256 (netbox_secrets-3.0.1.tar.gz) = 218ed565e6715ded330a11c5d09ca91fd3f94ea774f3b9102de01cd7552a6307
+SIZE (netbox_secrets-3.0.1.tar.gz) = 61467
diff --git a/security/py-netbox-secrets/files/patch-netbox__secrets_api_views.py b/security/py-netbox-secrets/files/patch-netbox__secrets_api_views.py
deleted file mode 100644
index bf80f2407895..000000000000
--- a/security/py-netbox-secrets/files/patch-netbox__secrets_api_views.py
+++ /dev/null
@@ -1,55 +0,0 @@
-Fix API schema error caused by LegacyActivateUserKeyViewSet
-
-Obtained from:
-
-https://github.com/Onemind-Services-LLC/netbox-secrets/pull/241
-
---- netbox_secrets/api/views.py.orig 2026-03-18 08:56:30 UTC
-+++ netbox_secrets/api/views.py
-@@ -725,6 +725,46 @@ class LegacyActivateUserKeyViewSet(ViewSet):
- permission_classes = [IsAuthenticated]
- serializer_class = serializers.ActivateUserKeySerializer
-
-+ @extend_schema(
-+ request=serializers.ActivateUserKeySerializer,
-+ responses={
-+ 200: OpenApiResponse(
-+ response=OpenApiTypes.STR,
-+ description="Plain-text success message.",
-+ examples=[
-+ OpenApiExample(
-+ "Success",
-+ value="Successfully activated 2 user keys.",
-+ )
-+ ],
-+ ),
-+ 400: OpenApiResponse(
-+ description="Bad request or validation error.",
-+ response=OpenApiTypes.OBJECT,
-+ examples=[
-+ OpenApiExample(
-+ "Validation error",
-+ value={"user_key_ids": ["This field is required."]},
-+ ),
-+ OpenApiExample(
-+ "Legacy error message",
-+ value={"detail": ERR_NO_KEYS_PROVIDED},
-+ ),
-+ ],
-+ ),
-+ 403: OpenApiResponse(
-+ response=OpenApiTypes.STR,
-+ description="Permission denied.",
-+ examples=[
-+ OpenApiExample(
-+ "Permission denied",
-+ value="You do not have permission to active User Keys.",
-+ )
-+ ],
-+ ),
-+ },
-+ deprecated=True,
-+ )
- def create(self, request):
- """
- Activate one or more user keys using the caller's private key.
diff --git a/security/py-netbox-secrets/files/patch-netbox__secrets_graphql_filters.py b/security/py-netbox-secrets/files/patch-netbox__secrets_graphql_filters.py
deleted file mode 100644
index 90dffb5d66e1..000000000000
--- a/security/py-netbox-secrets/files/patch-netbox__secrets_graphql_filters.py
+++ /dev/null
@@ -1,30 +0,0 @@
-Fixes following warnings/exceptions:
-
-UserWarning: FilterLookup[str] may cause DuplicatedTypeName errors. Use StrFilterLookup instead
-
-Obtained from:
-
-https://github.com/Onemind-Services-LLC/netbox-secrets/pull/239
-
---- netbox_secrets/graphql/filters.py.orig 2026-03-18 09:11:43 UTC
-+++ netbox_secrets/graphql/filters.py
-@@ -3,7 +3,7 @@ from strawberry.scalars import ID
- import strawberry
- import strawberry_django
- from strawberry.scalars import ID
--from strawberry_django import FilterLookup
-+from strawberry_django import StrFilterLookup
-
- from netbox.graphql.filters import (
- OrganizationalModelFilter,
-@@ -36,8 +36,8 @@ class SecretRoleFilter(OrganizationalModelFilter):
-
-
- @strawberry_django.filter_type(Secret, lookups=True)
--class SecretFilter(ContactFilterMixin, PrimaryModelFilter):
-- name: FilterLookup[str] | None = strawberry_django.filter_field()
-+class SecretFilter(PrimaryModelFilter, ContactFilterMixin):
-+ name: StrFilterLookup[str] | None = strawberry_django.filter_field()
- role: Annotated[
- 'SecretRoleFilter', strawberry.lazy('netbox_secrets.graphql.filters')
- ] | None = strawberry_django.filter_field()