forked from mirrors/nixpkgs
python3Packages.pyahocorasick: use upstream patch
Follow up to 46c3452a16
(python3Packages.pyahocorasick: fix build on
Hydra (x86_64-darwin), 2021-11-21), now with upstream patch.
This commit is contained in:
parent
fbd3124b92
commit
5b2e2ba60c
|
@ -1,6 +1,7 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
|
@ -15,10 +16,13 @@ buildPythonPackage rec {
|
|||
sha256 = "13x3718if28l50474xrz1b9709kvnvdg3nzm6y8bh7mc9a4zyss5";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace unittests.py \
|
||||
--replace '(tmp, "test.dat")' "(\"$TMPDIR\", \"test.dat\")"
|
||||
'';
|
||||
patches = [
|
||||
# Use proper temporary directory on Hydra
|
||||
(fetchpatch {
|
||||
url = "https://github.com/WojciechMula/pyahocorasick/commit/b6549e06f3cced7ffdf4d1b587cd7de12041f495.patch";
|
||||
sha256 = "sha256-v3J/0aIPOnBhLlJ18r/l7O0MckqLOCtcmqIS9ZegaSI=";
|
||||
})
|
||||
];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue