Merge pull request #323781 from mweinelt/pretix-2024.6.0

pretix: 2024.5.0 -> 2024.6.0
This commit is contained in:
Martin Weinelt
2024-07-01 23:16:00 +02:00
committed by GitHub
10 changed files with 8281 additions and 106 deletions
+1
View File
@@ -99,6 +99,7 @@ python.pkgs.buildPythonApplication rec {
"celery"
"css-inline"
"cssutils"
"django-compressor"
"django-csp"
"django-filter"
"django-hierarkey"
+14 -4
View File
@@ -34,17 +34,19 @@ let
};
pretix-plugin-build = self.callPackage ./plugin-build.nix { };
sentry-sdk = super.sentry-sdk_2;
};
};
pname = "pretix";
version = "2024.5.0";
version = "2024.6.0";
src = fetchFromGitHub {
owner = "pretix";
repo = "pretix";
rev = "refs/tags/v${version}";
hash = "sha256-dLzCugbRQSGuOwe99a3WLMffisyvYWNRdSdcdW9knjY=";
hash = "sha256-erI3Ai6zwNSvMiF3YKfnU9ePb9R92rfi5rsxfAOh6EQ=";
};
npmDeps = buildNpmPackage {
@@ -52,7 +54,7 @@ let
inherit version src;
sourceRoot = "${src.name}/src/pretix/static/npm_dir";
npmDepsHash = "sha256-SEgAC3dmnxG1xM9QZQ/e+6NFOwXU3tXlbfZCzrAMFO0=";
npmDepsHash = "sha256-//CLPnx5eUxIHIUGc7x2UF8qsfAYRtvHbHXSDNtI/eI=";
dontBuild = true;
@@ -97,7 +99,8 @@ python.pkgs.buildPythonApplication rec {
--replace-fail "protobuf==5.27.*" protobuf \
--replace-fail "pycryptodome==3.20.*" pycryptodome \
--replace-fail "python-dateutil==2.9.*" python-dateutil \
--replace-fail "requests==2.32.*" "requests" \
--replace-fail "requests==2.31.*" "requests" \
--replace-fail "sentry-sdk==2.5.*" "sentry-sdk>=2" \
--replace-fail "stripe==7.9.*" stripe
'';
@@ -226,6 +229,13 @@ python.pkgs.buildPythonApplication rec {
disabledTests = [
# unreliable around day changes
"test_order_create_invoice"
# outdated translation files
# https://github.com/pretix/pretix/commit/c4db2a48b6ac81763fa67475d8182aee41c31376
"test_different_dates_spanish"
"test_same_day_spanish"
"test_same_month_spanish"
"test_same_year_spanish"
];
preCheck = ''
@@ -26,13 +26,13 @@
buildPythonPackage rec {
pname = "django-compressor";
version = "4.4";
version = "4.5";
pyproject = true;
src = fetchPypi {
pname = "django_compressor";
inherit version;
hash = "sha256-GwrMnPup9pvDjnxB2psNcKILyVWHtkP/75YJz0YGT2c=";
hash = "sha256-nZjJBbdBvmywmtgowdIqn/kkTdCII+KSavjd0YccPGU=";
};
build-system = [
@@ -6,10 +6,10 @@
nix-update-script,
# build-system
gettext,
flit-gettext,
flit-scm,
nodejs,
npmHooks,
setuptools-scm,
# dependencies
django,
@@ -21,58 +21,52 @@
buildPythonPackage rec {
pname = "django-hijack";
version = "3.4.5";
format = "setuptools";
version = "3.5.4";
pyproject = true;
src = fetchFromGitHub {
owner = "django-hijack";
repo = "django-hijack";
rev = "refs/tags/${version}";
hash = "sha256-FXh5OFMTjsKgjEeIS+CiOwyGOs4AisJA+g49rCILDsQ=";
hash = "sha256-d8rKn4Hab7y/e/VLhVfr3A3TUhoDtjP7RhCj+o6IbyE=";
};
postPatch = ''
substituteInPlace setup.py \
--replace 'cmd = ["npm", "ci"]' 'cmd = ["true"]' \
--replace 'f"{self.build_lib}/{name}.mo"' 'f"{name}.mo"'
sed -i "/addopts/d" pyproject.toml
sed -i "/addopts/d" setup.cfg
# missing integrity hashes for yocto-queue, yargs-parser
cp ${./package-lock.json} package-lock.json
'';
npmDeps = fetchNpmDeps {
inherit src;
hash = "sha256-cZEr/7FW4vCR8gpraT+/rPwYK9Xn22b5WH7lnuK5L4U=";
inherit src postPatch;
hash = "sha256-npAFpdqGdttE4facBimS/y2SqwnCvOHJhd60SPR/IaA=";
};
nativeBuildInputs = [
gettext
build-system = [
flit-gettext
flit-scm
nodejs
npmHooks.npmConfigHook
setuptools-scm
];
propagatedBuildInputs = [ django ];
dependencies = [ django ];
nativeCheckInputs = [
pytestCheckHook
pytest-django
];
env.DJANGO_SETTINGS_MODULE = "hijack.tests.test_app.settings";
pytestFlagsArray = [
"--pyargs"
"hijack"
"-W"
"ignore::DeprecationWarning"
];
preCheck = ''
export DJANGO_SETTINGS_MODULE=hijack.tests.test_app.settings
'';
# needed for npmDeps update
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Allows superusers to hijack (=login as) and work on behalf of another user";
homepage = "https://github.com/arteria/django-hijack";
homepage = "https://github.com/django-hijack/django-hijack";
changelog = "https://github.com/django-hijack/django-hijack/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ ris ];
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,79 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
substituteAll,
# build-system
flit-scm,
wheel,
# dependencies
flit-core,
gettext,
# tests
build,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "flit-gettext";
version = "1.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "codingjoe";
repo = "flit-gettext";
rev = version;
hash = "sha256-YsRfpciSrHmivEJKfzdp6UaPx2tSr3VdjU4ZIbYQX6c=";
};
patches = [
(substituteAll {
src = ./msgfmt-path.patch;
msgfmt = lib.getExe' gettext "msgfmt";
})
];
postPatch = ''
sed -i "s/--cov//" pyproject.toml
'';
nativeBuildInputs = [
flit-scm
wheel
];
propagatedBuildInputs = [ flit-core ];
optional-dependencies = {
scm = [ flit-scm ];
};
nativeCheckInputs = [
build
pytestCheckHook
wheel
] ++ optional-dependencies.scm;
disabledTests = [
# tests for missing msgfmt, but we always provide it
"test_compile_gettext_translations__no_gettext"
];
disabledTestPaths = [
# calls python -m build, but can't find build
"tests/test_core.py"
"tests/test_scm.py"
];
pythonImportsCheck = [ "flit_gettext" ];
meta = with lib; {
description = "Compiling gettext i18n messages during project bundling";
homepage = "https://github.com/codingjoe/flit-gettext";
license = licenses.bsd2;
maintainers = with maintainers; [ hexa ];
};
}
@@ -0,0 +1,13 @@
diff --git a/flit_gettext/utils.py b/flit_gettext/utils.py
index dd1b135..1c8877c 100644
--- a/flit_gettext/utils.py
+++ b/flit_gettext/utils.py
@@ -7,7 +7,7 @@ def compile_gettext_translations(config):
"""Compile gettext translations."""
print("\33[1m* Compiling gettext translations...\33[0m")
- msgfmt = shutil.which("msgfmt")
+ msgfmt = shutil.which("msgfmt") or "@msgfmt@"
if msgfmt is None:
raise OSError("msgfmt not found, please install gettext or check your PATH.")
@@ -0,0 +1,136 @@
{
lib,
stdenv,
aiohttp,
apache-beam,
asttokens,
blinker,
bottle,
buildPythonPackage,
celery,
certifi,
chalice,
django,
executing,
falcon,
fetchFromGitHub,
flask,
gevent,
httpx,
jsonschema,
mock,
pure-eval,
pyrsistent,
pyspark,
pysocks,
pytest-forked,
pytest-localserver,
pytest-watch,
pytestCheckHook,
pythonOlder,
quart,
rq,
sanic,
setuptools,
sqlalchemy,
tornado,
urllib3,
}:
buildPythonPackage rec {
pname = "sentry-sdk";
version = "1.45.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "getsentry";
repo = "sentry-python";
rev = "refs/tags/${version}";
hash = "sha256-OWoMqJlf0vmBHWWsW6mF4u5X9USzxkFmCJyX7Ws0dD0=";
};
build-system = [ setuptools ];
dependencies = [
certifi
urllib3
];
passthru.optional-dependencies = {
aiohttp = [ aiohttp ];
beam = [ apache-beam ];
bottle = [ bottle ];
celery = [ celery ];
chalice = [ chalice ];
django = [ django ];
falcon = [ falcon ];
flask = [
flask
blinker
];
httpx = [ httpx ];
pyspark = [ pyspark ];
pure_eval = [
asttokens
executing
pure-eval
];
quart = [
quart
blinker
];
rq = [ rq ];
sanic = [ sanic ];
sqlalchemy = [ sqlalchemy ];
tornado = [ tornado ];
};
nativeCheckInputs = [
asttokens
executing
gevent
jsonschema
mock
pure-eval
pyrsistent
pysocks
pytest-forked
pytest-localserver
pytest-watch
pytestCheckHook
];
doCheck = !stdenv.isDarwin;
disabledTests = [
# Issue with the asseration
"test_auto_enabling_integrations_catches_import_error"
"test_default_release"
];
disabledTestPaths =
[
# Varius integration tests fail every once in a while when we
# upgrade dependencies, so don't bother testing them.
"tests/integrations/"
]
++ lib.optionals (stdenv.buildPlatform != "x86_64-linux") [
# test crashes on aarch64
"tests/test_transport.py"
];
pythonImportsCheck = [ "sentry_sdk" ];
meta = with lib; {
description = "Python SDK for Sentry.io";
homepage = "https://github.com/getsentry/sentry-python";
changelog = "https://github.com/getsentry/sentry-python/blob/${version}/CHANGELOG.md";
license = licenses.bsd2;
maintainers = with maintainers; [
fab
gebner
];
};
}
@@ -1,136 +1,199 @@
{
lib,
stdenv,
aiohttp,
apache-beam,
asttokens,
blinker,
bottle,
buildPythonPackage,
celery,
certifi,
chalice,
django,
executing,
falcon,
fetchFromGitHub,
flask,
gevent,
httpx,
jsonschema,
mock,
pure-eval,
pyrsistent,
pyspark,
pysocks,
pytest-forked,
pytest-localserver,
pytest-watch,
pytestCheckHook,
pythonOlder,
quart,
rq,
sanic,
setuptools,
sqlalchemy,
tornado,
urllib3,
{ lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, setuptools
# dependencies
, certifi
, urllib3
# optional-dependencies
, aiohttp
, anthropic
, asyncpg
, apache-beam
, bottle
, celery
, celery-redbeat
, chalice
, clickhouse-driver
, django
, falcon
, fastapi
, flask
, blinker
, markupsafe
, grpcio
, protobuf
, httpx
, huey
, huggingface-hub
, langchain
, loguru
, openai
, tiktoken
, pure-eval
, executing
, asttokens
, pymongo
, pyspark
, quart
, rq
, sanic
, sqlalchemy
, starlette
, tornado
# checks
, ipdb
, jsonschema
, pip
, pyrsistent
, pysocks
, pytest-asyncio
, pytestCheckHook
, pytest-forked
, pytest-localserver
, pytest-xdist
, pytest-watch
, responses
}:
buildPythonPackage rec {
pname = "sentry-sdk";
version = "1.45.0";
version = "2.7.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "getsentry";
repo = "sentry-python";
rev = "refs/tags/${version}";
hash = "sha256-OWoMqJlf0vmBHWWsW6mF4u5X9USzxkFmCJyX7Ws0dD0=";
rev = version;
hash = "sha256-MxpG4R6kWozBR5RiSBI/rCSsM2Gv2XJcx8B3IV3LGVk=";
};
build-system = [ setuptools ];
postPatch = ''
sed -i "/addopts =/d" pytest.ini
'';
build-system = [
setuptools
];
dependencies = [
certifi
urllib3
];
passthru.optional-dependencies = {
optional-dependencies = {
aiohttp = [ aiohttp ];
anthropic = [ anthropic ];
# TODO: arq
asyncpg = [ asyncpg ];
beam = [ apache-beam ];
bottle = [ bottle ];
celery = [ celery ];
celery-redbeat = [ celery-redbeat ];
chalice = [ chalice ];
clickhouse-driver = [ clickhouse-driver ];
django = [ django ];
falcon = [ falcon ];
fastapi = [ fastapi ];
flask = [
flask
blinker
flask
markupsafe
];
grpcio = [
grpcio
protobuf
];
httpx = [ httpx ];
pyspark = [ pyspark ];
huey = [ huey ];
huggingface-hub = [ huggingface-hub ];
langchain = [ langchain ];
loguru = [ loguru ];
openai = [
openai
tiktoken
];
# TODO: opentelemetry
# TODO: opentelemetry-experimental
pure_eval = [
asttokens
executing
pure-eval
];
pymongo = [ pymongo ];
pyspark = [ pyspark ];
quart = [
quart
blinker
quart
];
rq = [ rq ];
sanic = [ sanic ];
sqlalchemy = [ sqlalchemy ];
starlette = [ starlette ];
# TODO: starlite
tornado = [ tornado ];
};
nativeCheckInputs = [
asttokens
executing
gevent
jsonschema
mock
pure-eval
ipdb
pyrsistent
responses
pysocks
setuptools
executing
jsonschema
pip
pytest-asyncio
pytest-forked
pytest-localserver
pytest-xdist
pytest-watch
pytestCheckHook
];
doCheck = !stdenv.isDarwin;
disabledTests = [
# Issue with the asseration
"test_auto_enabling_integrations_catches_import_error"
# depends on git revision
"test_default_release"
# tries to pip install old setuptools version
"test_error_has_existing_trace_context_performance_disabled"
"test_error_has_existing_trace_context_performance_enabled"
"test_error_has_new_trace_context_performance_disabled"
"test_error_has_new_trace_context_performance_enabled"
"test_traces_sampler_gets_correct_values_in_sampling_context"
"test_performance_error"
"test_performance_no_error"
"test_timeout_error"
"test_handled_exception"
"test_unhandled_exception"
# network access
"test_create_connection_trace"
"test_crumb_capture"
"test_getaddrinfo_trace"
"test_omit_url_data_if_parsing_fails"
"test_span_origin"
# AttributeError: type object 'ABCMeta' has no attribute 'setup_once'
"test_ensure_integration_enabled_async_no_original_function_enabled"
"test_ensure_integration_enabled_no_original_function_enabled"
# sess = envelopes[1]
# IndexError: list index out of range
"test_session_mode_defaults_to_request_mode_in_wsgi_handler"
# assert count_item_types["sessions"] == 1
# assert 0 == 1
"test_auto_session_tracking_with_aggregates"
];
disabledTestPaths =
[
# Varius integration tests fail every once in a while when we
# upgrade dependencies, so don't bother testing them.
"tests/integrations/"
]
++ lib.optionals (stdenv.buildPlatform != "x86_64-linux") [
# test crashes on aarch64
"tests/test_transport.py"
];
pythonImportsCheck = [ "sentry_sdk" ];
meta = with lib; {
description = "Python SDK for Sentry.io";
description = "Official Python SDK for Sentry.io";
homepage = "https://github.com/getsentry/sentry-python";
changelog = "https://github.com/getsentry/sentry-python/blob/${version}/CHANGELOG.md";
license = licenses.bsd2;
maintainers = with maintainers; [
fab
gebner
];
changelog = "https://github.com/getsentry/sentry-python/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}
+5 -1
View File
@@ -4471,6 +4471,8 @@ self: super: with self; {
flit-core = callPackage ../development/python-modules/flit-core { };
flit-gettext = callPackage ../development/python-modules/flit-gettext { };
flit-scm = callPackage ../development/python-modules/flit-scm { };
floret = callPackage ../development/python-modules/floret { };
@@ -13911,7 +13913,9 @@ self: super: with self; {
sentinels = callPackage ../development/python-modules/sentinels { };
sentry-sdk = callPackage ../development/python-modules/sentry-sdk { };
sentry-sdk_1 = callPackage ../development/python-modules/sentry-sdk/1.nix { };
sentry-sdk_2 = callPackage ../development/python-modules/sentry-sdk/default.nix { };
sentry-sdk = sentry-sdk_1;
sepaxml = callPackage ../development/python-modules/sepaxml { };