1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchPypi,
6 setuptools,
7 pybind11,
8 re2,
9}:
10
11buildPythonPackage rec {
12 pname = "google-re2";
13 version = "1.1.20250722";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchPypi {
19 pname = "google_re2";
20 inherit version;
21 hash = "sha256-XipGTfddvO+f4Nrxinj3PD8KUbgc24ZUYKBXmyJvLvM=";
22 };
23
24 build-system = [ setuptools ];
25
26 buildInputs = [ re2 ];
27
28 dependencies = [ pybind11 ];
29
30 doCheck = false; # no tests in sdist
31
32 pythonImportsCheck = [ "re2" ];
33
34 meta = with lib; {
35 description = "RE2 Python bindings";
36 homepage = "https://github.com/google/re2";
37 license = licenses.bsd3;
38 maintainers = with maintainers; [ alexbakker ];
39 };
40}