Skip to content

Commit c96cedc

Browse files
committed
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 NixOS#353195 Signed-off-by: Ihar Hrachyshka <[email protected]>
1 parent 14e6ebd commit c96cedc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkgs/development/python-modules/behave/default.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
lib,
33
stdenv,
44
fetchFromGitHub,
5+
fetchpatch2,
56
buildPythonPackage,
67
python,
78
pythonOlder,
@@ -31,6 +32,14 @@ buildPythonPackage rec {
3132
hash = "sha256-G1o0a57MRczwjGLl/tEYC+yx3nxpk6+E58RvR9kVJpA=";
3233
};
3334

35+
patches = [
36+
# fix tests: https://github.com/behave/behave/pull/1214
37+
(fetchpatch2 {
38+
url = "https://github.com/behave/behave/pull/1214/commits/98b63a2524eff50ce1dc7360a46462a6f673c5ea.patch?full_index=1";
39+
hash = "sha256-MwODEm6vhg/H8ksp5XBBP5Uhu2dhB5B1T6Owkxpy3v0=";
40+
})
41+
];
42+
3443
build-system = [ setuptools ];
3544

3645
nativeCheckInputs = [

0 commit comments

Comments
 (0)