From c96cedcf010a50661a043dafa707df91a5050794 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Sun, 2 Feb 2025 14:25:50 -0500 Subject: [PATCH] python311Packages.behave: fix build The package executes tests for python3.11 and they are failing. Other python versions do not have tests enabled, so they are not affected. (Note: bumping the derivation to dev6 version breaks `sismic` python package test suite; and it still doesn't include python3.13 test suite fixes. Leaving this exercise to derivation maintainers.) Closes #353195 Signed-off-by: Ihar Hrachyshka --- pkgs/development/python-modules/behave/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/behave/default.nix b/pkgs/development/python-modules/behave/default.nix index 30f6c81c851d..e196257a8377 100644 --- a/pkgs/development/python-modules/behave/default.nix +++ b/pkgs/development/python-modules/behave/default.nix @@ -2,6 +2,7 @@ lib, stdenv, fetchFromGitHub, + fetchpatch2, buildPythonPackage, python, pythonOlder, @@ -31,6 +32,14 @@ buildPythonPackage rec { hash = "sha256-G1o0a57MRczwjGLl/tEYC+yx3nxpk6+E58RvR9kVJpA="; }; + patches = [ + # fix tests: https://github.com/behave/behave/pull/1214 + (fetchpatch2 { + url = "https://github.com/behave/behave/pull/1214/commits/98b63a2524eff50ce1dc7360a46462a6f673c5ea.patch?full_index=1"; + hash = "sha256-MwODEm6vhg/H8ksp5XBBP5Uhu2dhB5B1T6Owkxpy3v0="; + }) + ]; + build-system = [ setuptools ]; nativeCheckInputs = [