pythonPackages.fb-re2: fix build with new re2 release

This commit is contained in:
emilylange
2023-08-18 14:59:33 +02:00
parent f5e30de2ff
commit a60e0da563
@@ -1,5 +1,6 @@
{ lib
, buildPythonPackage
, fetchpatch
, fetchPypi
, re2
}:
@@ -13,6 +14,16 @@ buildPythonPackage rec {
sha256 = "83b2c2cd58d3874e6e3a784cf4cf2f1a57ce1969e50180f92b010eea24ef26cf";
};
patches = [
# Bump stdlib to c++17 to fix build with recent re2
# https://github.com/facebook/pyre2/issues/24
# https://github.com/facebook/pyre2/pull/25
(fetchpatch {
url = "https://github.com/facebook/pyre2/pull/25/commits/08fb06ec3ccd412ca69483d27234684a04cb91a0.patch";
hash = "sha256-kzxE2AxpE1tJJK0dJgoFfVka9zy2u0HEqiHoS7DQDQ0=";
})
];
buildInputs = [ re2 ];
# no tests in PyPI tarball