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:
parent
f508ae8894
commit
46c3452a16
|
@ -15,6 +15,11 @@ buildPythonPackage rec {
|
|||
sha256 = "13x3718if28l50474xrz1b9709kvnvdg3nzm6y8bh7mc9a4zyss5";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace unittests.py \
|
||||
--replace '(tmp, "test.dat")' "(\"$TMPDIR\", \"test.dat\")"
|
||||
'';
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
pytestFlagsArray = [ "unittests.py" ];
|
||||
|
|
Loading…
Reference in a new issue