diff --git a/pkgs/development/python-modules/borb/default.nix b/pkgs/development/python-modules/borb/default.nix index 589eedcab9bf..3246a11213b4 100644 --- a/pkgs/development/python-modules/borb/default.nix +++ b/pkgs/development/python-modules/borb/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, cryptography, fetchFromGitHub, @@ -30,6 +31,14 @@ buildPythonPackage rec { hash = "sha256-eVxpcYL3ZgwidkSt6tUav3Bkne4lo1QCshdUFqkA0wI="; }; + # ModuleNotFoundError: No module named '_decimal' + postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' + grep -Rl 'from _decimal' tests/ | while read -r test_file; do + substituteInPlace "$test_file" \ + --replace-fail 'from _decimal' 'from decimal' + done + ''; + build-system = [ setuptools ]; dependencies = [