Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
41 lines
955 B
Nix
41 lines
955 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchpatch,
|
|
fetchPypi,
|
|
re2,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fb-re2";
|
|
version = "1.0.7";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
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
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Python wrapper for Google's RE2";
|
|
homepage = "https://github.com/facebook/pyre2";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ ivan ];
|
|
};
|
|
}
|