froide: 0-unstable-2025-04-25 -> 0-unstable-2025-06-01

This commit is contained in:
Jonas Heinrich
2025-07-04 22:24:54 +02:00
parent 9a3a54f112
commit 7f1da3b0ae
+29 -11
View File
@@ -15,20 +15,38 @@
let
python = python3Packages.python.override {
packageOverrides = self: super: { django = super.django.override { withGdal = true; }; };
packageOverrides = self: super: {
django_5 = super.django_5.override { withGdal = true; };
django = super.django_5;
# custom python module part of froide
dogtail = super.buildPythonPackage {
pname = "dogtail";
version = "0-unstable-2024-11-27";
pyproject = true;
src = fetchFromGitHub {
owner = "okfde";
repo = "dogtail";
rev = "d2f341cab0f05ef4e193f0158fe5a64aadc5bae6";
hash = "sha256-2lQZgvFXAz6q/3NpBcwckUologWxKmwXI0ZG5nylajg=";
};
build-system = with super; [ setuptools ];
};
};
};
in
python.pkgs.buildPythonApplication rec {
pname = "froide";
version = "0-unstable-2025-04-25";
version = "0-unstable-2025-07-01";
pyproject = true;
src = fetchFromGitHub {
owner = "okfde";
repo = "froide";
rev = "9e4838fc5f17a0506af42ad5fd1ebc66cff4b92a";
hash = "sha256-0EC6oCaiK7gw5ikemskiK3qOlflGHzlG4giDQNj9tBQ=";
rev = "362bddb5a8fdfe762d59cdebd29016568c9531b2";
hash = "sha256-c8I/FvXQSkAeacxMQJCpCMKFueNEnLI4R0ElqRbVbNg=";
};
patches = [ ./django_42_storages.patch ];
@@ -48,11 +66,9 @@ python.pkgs.buildPythonApplication rec {
];
dependencies = with python.pkgs; [
bleach
celery
celery-singleton
channels
coreapi
dj-database-url
django
django-celery-beat
@@ -63,9 +79,6 @@ python.pkgs.buildPythonApplication rec {
django-elasticsearch-dsl
django-filingcabinet
django-filter
# Project discontinued upstream
# https://github.com/okfde/froide/issues/893
django-fsm
django-json-widget
django-leaflet
django-mfa3
@@ -86,6 +99,7 @@ python.pkgs.buildPythonApplication rec {
geoip2
icalendar
markdown
nh3
phonenumbers
pillow
pikepdf
@@ -104,7 +118,7 @@ python.pkgs.buildPythonApplication rec {
pnpmDeps = pnpm.fetchDeps {
inherit pname version src;
hash = "sha256-IeuQoiI/r9AKLZgKkZx0C+qE9ueWuC39Y77MB08zSAc=";
hash = "sha256-g7YX2fVXGmb3Qq9NNCb294bk4/0khcIZVSskYbE8Mdw=";
};
postBuild = ''
@@ -114,7 +128,7 @@ python.pkgs.buildPythonApplication rec {
postInstall = ''
cp -r build manage.py $out/${python.sitePackages}/froide/
makeWrapper $out/${python.sitePackages}/froide/manage.py $out/bin/froide \
--prefix PYTHONPATH : "$PYTHONPATH" \
--prefix PYTHONPATH : "${python3Packages.makePythonPath dependencies}" \
--set GDAL_LIBRARY_PATH "${gdal}/lib/libgdal.so" \
--set GEOS_LIBRARY_PATH "${geos}/lib/libgeos_c.so"
'';
@@ -129,6 +143,7 @@ python.pkgs.buildPythonApplication rec {
checkInputs = with python.pkgs; [
beautifulsoup4
pytest-asyncio
pytest-factoryboy
time-machine
];
@@ -156,6 +171,9 @@ python.pkgs.buildPythonApplication rec {
"test_bouncing_email"
"test_multiple_partial"
"test_logfile_rotation"
# Test hangs
"test_collapsed_menu"
"test_make_request_logged_out_with_existing_account"
];
preCheck =