92b3d6365d
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
38 lines
628 B
Nix
38 lines
628 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, pybind11
|
|
, re2
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-re2";
|
|
version = "1.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-IcitwpY2DeH/QmuqOMcS6tpiLChY0ZXrSH5BXZQZTpE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pybind11
|
|
re2
|
|
six
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"re2"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "RE2 Python bindings";
|
|
homepage = "https://github.com/google/re2";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ alexbakker ];
|
|
};
|
|
}
|