git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.pyahocorasick: use upstream patch

Follow up to 46c3452a16a (python3Packages.pyahocorasick: fix build on Hydra (x86_64-darwin), 2021-11-21), now with upstream patch.

commit5b2e2ba60c0b877f87bea336aeaa93aa482c9545 authorSebastián Mancilla <smancill@smancill.dev> dateMon 22 Nov 2021, 20:42 (5 years ago) parentfbd3124
1 file changed+8−4
pkgs/development/python-modules/pyahocorasick/default.nix+8−4
pkgs/development/python-modules/pyahocorasick/default.nix+8−4
@@ -1,6 +1,7 @@
11{ lib
22, buildPythonPackage
33, fetchFromGitHub
4+, fetchpatch
45, pytestCheckHook
56}:
67
@@ -15,10 +16,13 @@ buildPythonPackage rec {
1516 sha256 = "13x3718if28l50474xrz1b9709kvnvdg3nzm6y8bh7mc9a4zyss5";
1617 };
1718
18− postPatch = ''
19− substituteInPlace unittests.py \
20− --replace '(tmp, "test.dat")' "(\"$TMPDIR\", \"test.dat\")"
21− '';
19+ patches = [
20+ # Use proper temporary directory on Hydra
21+ (fetchpatch {
22+ url = "https://github.com/WojciechMula/pyahocorasick/commit/b6549e06f3cced7ffdf4d1b587cd7de12041f495.patch";
23+ sha256 = "sha256-v3J/0aIPOnBhLlJ18r/l7O0MckqLOCtcmqIS9ZegaSI=";
24+ })
25+ ];
2226
2327 checkInputs = [ pytestCheckHook ];
2428