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