3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.pyahocorasick: fix build on Hydra (x86_64-darwin)

Tests need write access to /tmp, which fails on Hydra (x86_64-darwin).
Use $TMPDIR instead.
This commit is contained in:
Sebastián Mancilla 2021-11-21 01:05:37 -03:00 committed by tomberek
parent f508ae8894
commit 46c3452a16

View file

@ -15,6 +15,11 @@ buildPythonPackage rec {
sha256 = "13x3718if28l50474xrz1b9709kvnvdg3nzm6y8bh7mc9a4zyss5";
};
postPatch = ''
substituteInPlace unittests.py \
--replace '(tmp, "test.dat")' "(\"$TMPDIR\", \"test.dat\")"
'';
checkInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "unittests.py" ];