From 63956efd80f6f9874fc2ec04f86fc1aa4f4a43b9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 22 May 2024 23:44:12 +0200 Subject: [PATCH] python312Packages.ics: disable failing test (cherry picked from commit 17f73d6f9ade07a11baf897b902e99b43d41ebea) --- .../python-modules/ics/default.nix | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/ics/default.nix b/pkgs/development/python-modules/ics/default.nix index c347b177587c..2f973a6dc981 100644 --- a/pkgs/development/python-modules/ics/default.nix +++ b/pkgs/development/python-modules/ics/default.nix @@ -16,7 +16,7 @@ buildPythonPackage rec { version = "0.7.2"; pyproject = true; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "ics-py"; @@ -25,9 +25,14 @@ buildPythonPackage rec { hash = "sha256-hdtnET7YfSb85+TGwpwzoxOfxPT7VSj9eKSiV6AXUS8="; }; - nativeBuildInputs = [ setuptools ]; + postPatch = '' + substituteInPlace setup.cfg \ + --replace-fail "--pep8" "" + ''; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ attrs arrow tatsu @@ -38,18 +43,13 @@ buildPythonPackage rec { pytestCheckHook ]; - postPatch = '' - # 0.8 will move to python-dateutil - substituteInPlace requirements.txt \ - --replace "arrow>=0.11,<0.15" "arrow" - substituteInPlace setup.cfg --replace "--pep8" "" - ''; - disabledTests = [ # Failure seems to be related to arrow > 1.0 "test_event" # Broke with TatSu 5.7: "test_many_lines" + # AssertionError: 'Europe/Berlin' not found in "tzfile('Atlantic/Jan_Mayen')" + "test_timezone_not_dropped" ]; pythonImportsCheck = [ "ics" ];