1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
38 lines
681 B
Nix
38 lines
681 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
pybind11,
|
|
re2,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-re2";
|
|
version = "1.1.20250805";
|
|
pyproject = true;
|
|
|
|
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 ];
|
|
};
|
|
}
|