From a74f2b4f3bc9ba291dcab1ee9232b96b488b96e7 Mon Sep 17 00:00:00 2001 From: Guillaume Girol Date: Sun, 10 Nov 2024 12:00:00 +0000 Subject: [PATCH] python3Packages.pendulum: fix on 32 bit platforms --- pkgs/development/python-modules/pendulum/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/development/python-modules/pendulum/default.nix b/pkgs/development/python-modules/pendulum/default.nix index bd74e66c6915..54a8d20ca04e 100644 --- a/pkgs/development/python-modules/pendulum/default.nix +++ b/pkgs/development/python-modules/pendulum/default.nix @@ -3,6 +3,7 @@ stdenv, buildPythonPackage, fetchFromGitHub, + fetchpatch, pythonOlder, isPyPy, @@ -54,6 +55,15 @@ buildPythonPackage rec { ''; }; + patches = [ + # fix build on 32bit + # https://github.com/sdispater/pendulum/pull/842 + (fetchpatch { + url = "https://github.com/sdispater/pendulum/commit/6f2fcb8b025146ae768a5889be4a437fbd3156d6.patch"; + hash = "sha256-47591JvpADxGQT2q7EYWHfStaiWyP7dt8DPTq0tiRvk="; + }) + ]; + nativeBuildInputs = [ poetry-core rustPlatform.maturinBuildHook