567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
41 lines
729 B
Nix
41 lines
729 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchPypi,
|
|
setuptools,
|
|
pybind11,
|
|
re2,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-re2";
|
|
version = "1.1.20250805";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
pname = "google_re2";
|
|
inherit version;
|
|
hash = "sha256-xV2ffJKoFOtTkYp7OOW6XqocmVSDIay4JtqVMnga9bU=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
buildInputs = [ re2 ];
|
|
|
|
dependencies = [ pybind11 ];
|
|
|
|
doCheck = false; # no tests in sdist
|
|
|
|
pythonImportsCheck = [ "re2" ];
|
|
|
|
meta = {
|
|
description = "RE2 Python bindings";
|
|
homepage = "https://github.com/google/re2";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ alexbakker ];
|
|
};
|
|
}
|