python312Packages.borb: fix build failure on darwin (#355819)
This commit is contained in:
commit
30e9f55fae
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
cryptography,
|
cryptography,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
@ -30,6 +31,14 @@ buildPythonPackage rec {
|
|||||||
hash = "sha256-eVxpcYL3ZgwidkSt6tUav3Bkne4lo1QCshdUFqkA0wI=";
|
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 ];
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
Loading…
Reference in New Issue
Block a user