pretalx: 2024.3.1 -> 2025.1.0 (#411784)

This commit is contained in:
Martin Weinelt
2025-05-28 23:21:32 +02:00
committed by GitHub
8 changed files with 103 additions and 17 deletions
+7 -4
View File
@@ -22,13 +22,13 @@ let
};
};
version = "2024.3.1";
version = "2025.1.0";
src = fetchFromGitHub {
owner = "pretalx";
repo = "pretalx";
rev = "v${version}";
hash = "sha256-y3BsNmLh9M5NgDPURCjCGWYci40hYcQtDVqsu2HqPRU=";
hash = "sha256-BlPmrfHbpsLI8DCldzoRudpf7T4SUpJXQA5h9o4Thek=";
};
meta = with lib; {
@@ -48,7 +48,7 @@ let
sourceRoot = "${src.name}/src/pretalx/frontend/schedule-editor";
npmDepsHash = "sha256-i7awRuR7NxhpxN2IZuI01PsN6FjXht7BxTbB1k039HA=";
npmDepsHash = "sha256-8difCdoG7j75wqwuWA/VBRk9oTjsM0QqLnR0iLkd/FY=";
npmBuildScript = "build";
@@ -79,6 +79,7 @@ python.pkgs.buildPythonApplication rec {
];
pythonRelaxDeps = [
"beautifulsoup4"
"bleach"
"celery"
"css-inline"
@@ -106,8 +107,8 @@ python.pkgs.buildPythonApplication rec {
beautifulsoup4
bleach
celery
css-inline
csscompressor
css-inline
cssutils
defusedcsv
defusedxml
@@ -124,6 +125,8 @@ python.pkgs.buildPythonApplication rec {
django-libsass
django-scopes
djangorestframework
drf-flex-fields
drf-spectacular
libsass
markdown
pillow
@@ -7,14 +7,14 @@
buildPythonPackage rec {
pname = "pretalx-media-ccc-de";
version = "1.4.0";
version = "1.4.1";
pyproject = true;
src = fetchFromGitHub {
owner = "pretalx";
repo = "pretalx-media-ccc-de";
rev = "v${version}";
hash = "sha256-U+26hit4xXUzN8JT3WL+iGohqomX1ENb+ihM9IT1XWQ=";
hash = "sha256-76hxS9cYvaRcToD8ooW0Fnp36+7n17j3UR1VD9v2zR8=";
};
build-system = [ setuptools ];
+7 -7
View File
@@ -1,20 +1,20 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchPypi,
setuptools,
}:
buildPythonPackage rec {
pname = "pretalx-pages";
version = "1.6.0";
version = "1.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pretalx";
repo = "pretalx-pages";
rev = "v${version}";
hash = "sha256-9ZJSW6kdxpwHd25CuGTE4MMXylXaZKL3eAEKKdYiuXs=";
# TODO: https://github.com/pretalx/pretalx-pages/issues/6
src = fetchPypi {
pname = "pretalx_pages";
inherit version;
hash = "sha256-XFZS0FUzouZzVh9AADK5dnezFZiAWoBihD4C184+690=";
};
build-system = [ setuptools ];
@@ -7,14 +7,14 @@
buildPythonPackage rec {
pname = "pretalx-public-voting";
version = "1.7.0";
version = "1.7.1";
pyproject = true;
src = fetchFromGitHub {
owner = "pretalx";
repo = "pretalx-public-voting";
rev = "v${version}";
hash = "sha256-ei6GgPPEXv9WVhh+4U+WDFCMsT4bND9O85cPLpPWMhQ=";
hash = "sha256-8l+ugonT0WTHyyMJnU3Vi2QVD2Xxpl286m3YEKu+Ij4=";
};
build-system = [ setuptools ];
@@ -0,0 +1,64 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
appdirs,
asgiref,
attrs,
black,
click,
django,
djangorestframework,
entrypoints,
flake8,
mccabe,
mypy,
mypy-extensions,
pycodestyle,
pyflakes,
pytz,
sqlparse,
toml,
typing-extensions,
# tests
pytestCheckHook,
pytest-django,
}:
buildPythonPackage rec {
pname = "drf-flex-fields";
version = "1.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "rsinger86";
repo = "drf-flex-fields";
tag = version;
hash = "sha256-+9ToxCEIDpsA+BK8Uk0VueVjoId41/S93+a716EGvCU=";
};
patches = [ ./django4-compat.patch ];
build-system = [ setuptools ];
nativeCheckInputs = [
django
djangorestframework
pytestCheckHook
pytest-django
];
preCheck = ''
export DJANGO_SETTINGS_MODULE=tests.settings
'';
meta = {
changelog = "https://github.com/rsinger86/drf-flex-fields/releases/tag/${src.tag}";
description = "Dynamically set fields and expand nested resources in Django REST Framework serializers";
homepage = "https://github.com/rsinger86/drf-flex-fields";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
}
@@ -0,0 +1,17 @@
diff --git a/tests/urls.py b/tests/urls.py
index 998b0aa..62996c0 100644
--- a/tests/urls.py
+++ b/tests/urls.py
@@ -1,4 +1,5 @@
-from django.conf.urls import url, include
+from django.conf.urls import include
+from django.urls import re_path
from rest_framework import routers
from tests.testapp.views import PetViewSet, TaggedItemViewSet
@@ -7,4 +8,4 @@ router = routers.DefaultRouter()
router.register(r"pets", PetViewSet, basename="pet")
router.register(r"tagged-items", TaggedItemViewSet, basename="tagged-item")
-urlpatterns = [url(r"^", include(router.urls))]
+urlpatterns = [re_path(r"^", include(router.urls))]
@@ -7,7 +7,7 @@
buildPythonPackage rec {
pname = "zxcvbn";
version = "4.4.28";
version = "4.5.0";
format = "setuptools";
# no tests included in PyPI tarball
@@ -15,7 +15,7 @@ buildPythonPackage rec {
owner = "dwolfhub";
repo = "zxcvbn-python";
tag = "v${version}";
hash = "sha256-etcST7pxlpOH5Q9KtOPGf1vmnkyjEp6Cd5QCmBjW9Hc=";
hash = "sha256-0SVJkJMEMnZVMpamDVP02kMwWRSj5zGlrMYG9kn0aXQ=";
};
nativeCheckInputs = [ pytestCheckHook ];
+2
View File
@@ -4201,6 +4201,8 @@ self: super: with self; {
drf-extra-fields = callPackage ../development/python-modules/drf-extra-fields { };
drf-flex-fields = callPackage ../development/python-modules/drf-flex-fields { };
drf-jwt = callPackage ../development/python-modules/drf-jwt { };
drf-nested-routers = callPackage ../development/python-modules/drf-nested-routers { };