Merge pull request #147066 from smancill/python3-pyahocorasick-upstream-patch
commitdc79916412754bde3108317e490a9e92a8618b7f
authorSandro <sandro.jaeckel@gmail.com>
dateTue 30 Nov 2021, 19:48 (5 years ago)
parent646b0595b2e2ba
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