Merge pull request #289623 from SuperSandro2000/pretalx-2024

pretalx: 2023.1.3 -> 2024.1.0
This commit is contained in:
Martin Weinelt 2024-03-08 21:11:54 +01:00 committed by GitHub
commit 84a0471d84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 821 additions and 469 deletions

View File

@ -27,18 +27,19 @@ let
};
};
version = "2023.1.3";
version = "2024.1.0";
src = fetchFromGitHub {
owner = "pretalx";
repo = "pretalx";
rev = "v${version}";
hash = "sha256-YxmkjfftNrInIcSkK21wJXiEU6hbdDa1Od8p+HiLprs=";
hash = "sha256-rFOlovybaEZnv5wBx6Dv8bVkP1D+CgYAKRXuNb6hLKQ=";
};
meta = with lib; {
description = "Conference planning tool: CfP, scheduling, speaker management";
homepage = "https://github.com/pretalx/pretalx";
changelog = "https://docs.pretalx.org/en/latest/changelog.html";
license = licenses.asl20;
maintainers = teams.c3d2.members;
platforms = platforms.linux;
@ -50,7 +51,7 @@ let
sourceRoot = "${src.name}/src/pretalx/frontend/schedule-editor";
npmDepsHash = "sha256-4cnBHZ8WpHgp/bbsYYbdtrhuD6ffUAZq9ZjoLpWGfRg=";
npmDepsHash = "sha256-B9R3Nn4tURNxzeyLDHscqHxYOQK9AcmDnyNq3k5WQQs=";
npmBuildScript = "build";
@ -72,22 +73,11 @@ python.pkgs.buildPythonApplication rec {
--replace 'subprocess.check_call(["npm", "run", "build"], cwd=frontend_dir, env=env)' ""
substituteInPlace src/setup.cfg \
--replace "--cov=./" ""
--replace "--cov=./ --cov-report=" ""
'';
nativeBuildInputs = [
gettext
python.pkgs.pythonRelaxDepsHook
];
pythonRelaxDeps = [
"bleach"
"cssutils"
"django-filter"
"django-formtools"
"libsass"
"markdown"
"pillow"
];
propagatedBuildInputs = with python.pkgs; [
@ -174,6 +164,7 @@ python.pkgs.buildPythonApplication rec {
nativeCheckInputs = with python.pkgs; [
faker
freezegun
jsonschema
pytest-django
pytest-mock
pytest-xdist
@ -185,9 +176,16 @@ python.pkgs.buildPythonApplication rec {
# tries to run npm run i18n:extract
"test_common_custom_makemessages_does_not_blow_up"
# Expected to perform X queries or less but Y were done
"test_can_see_schedule"
"test_schedule_export_public"
"test_schedule_frab_json_export"
"test_schedule_frab_xcal_export"
"test_schedule_frab_xml_export"
"test_schedule_frab_xml_export_control_char"
"test_schedule_page_text_list"
"test_schedule_page_text_table"
"test_schedule_page_text_wrong_format"
"test_versioned_schedule_page"
];
passthru = {

File diff suppressed because it is too large Load Diff

View File

@ -17,14 +17,14 @@
buildPythonPackage rec {
pname = "css-inline";
version = "0.10.1";
format = "pyproject";
version = "0.13.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Stranger6667";
repo = "css-inline";
rev = "python-v${version}";
hash = "sha256-oBAJv/hAz/itT2WakIw/1X1NvOHX108NoeS6V7k+aG8=";
hash = "sha256-hhjeOr7EJc4Tmn/eQ1vF0xChSIlgfSmtqi6s7WCUq00=";
};
postPatch = ''
@ -41,7 +41,7 @@ buildPythonPackage rec {
ln -s ${./Cargo.lock} Cargo.lock
'';
name = "${pname}-${version}";
hash = "sha256-SFG1nsP4+I0zH8VeyL1eeaTx0tHNIvmx6M0cko0pqIA=";
hash = "sha256-noYBSwCfdpuwb55toyx4K/16Z4A0NWjnMuzwTi5g8AU=";
};
nativeBuildInputs = [
@ -63,6 +63,11 @@ buildPythonPackage rec {
pytestCheckHook
];
disabledTests = [
# fails to connect to local server
"test_remote_stylesheet"
];
meta = with lib; {
description = "Inline CSS into style attributes";
homepage = "https://github.com/Stranger6667/css-inline";

View File

@ -9,14 +9,14 @@
buildPythonPackage rec {
pname = "django-formtools";
version = "2.4.1";
format = "setuptools";
version = "2.5.1";
pyproject = true;
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-IfjV2sc38eY2+ooKEJacHDL1JabfonwpWSgnunDZZDo=";
hash = "sha256-R8s0VSxu/KCIhj1pMoTQT8NuqvNQ6yHhodk14N9SPJM=";
};
nativeBuildInputs = [
@ -28,7 +28,11 @@ buildPythonPackage rec {
];
checkPhase = ''
runHook preCheck
${python.interpreter} -m django test --settings=tests.settings
runHook postCheck
'';
pythonImportsCheck = [
@ -38,6 +42,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "A set of high-level abstractions for Django forms";
homepage = "https://github.com/jazzband/django-formtools";
changelog = "https://github.com/jazzband/django-formtools/blob/master/docs/changelog.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ greizgh schmittlauch ];
};

View File

@ -1,5 +1,6 @@
{ lib
, buildPythonPackage
, chardet
, fetchPypi
, freetype
, pillow
@ -13,15 +14,15 @@ let
ft = freetype.overrideAttrs (oldArgs: { dontDisableStatic = true; });
in buildPythonPackage rec {
pname = "reportlab";
version = "4.0.7";
format = "pyproject";
version = "4.1.0";
pyproject = true;
# See https://bitbucket.org/pypy/compatibility/wiki/reportlab%20toolkit
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
hash = "sha256-lnx38A79kYzCMc+LbY9OR33Jc7XBZVfjvRjfrrWnAjQ=";
hash = "sha256-Opn69BJpEVnAaLP/AcFTB84v0s9rhgGZQ0h04AIECoQ=";
};
postPatch = ''
@ -44,6 +45,7 @@ in buildPythonPackage rec {
];
propagatedBuildInputs = [
chardet
pillow
];
@ -61,7 +63,7 @@ in buildPythonPackage rec {
meta = with lib; {
description = "An Open Source Python library for generating PDFs and graphics";
homepage = "http://www.reportlab.com/";
homepage = "https://www.reportlab.com/";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};

View File

@ -11,10 +11,10 @@
buildPythonPackage rec {
pname = "whitenoise";
version = "6.5.0";
format = "pyproject";
version = "6.6.0";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";
__darwinAllowLocalNetworking = true;
@ -22,7 +22,7 @@ buildPythonPackage rec {
owner = "evansd";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-g1D0tjGsAP3y1fWvODWwNvxnTSZJuTpyZ0Otk83Oq9E=";
hash = "sha256-Z59GjrOL+BPHqBCirg9T4qBOrjiuBng6Q5lTuLQx9ac=";
};
nativeBuildInputs = [