summary refs log blame commit diff
path: root/pkgs/development/python-modules/google-re2/default.nix
blob: defe92b39ba22d535e7f297e8a121fcf740cd8bd (plain) (tree)
1
2
3
4
5
6
7
8







                    


                        
                           


                               


                          
                                                                 


                           






                        



                                        

                                               


                                                   
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, pybind11
, re2
, six
}:

buildPythonPackage rec {
  pname = "google-re2";
  version = "0.2.20220401";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-v3G+MvFV8gq9LJqj/zrtlTjRm0ZNxTh0UdQSPiwFHY4=";
  };

  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 ];
  };
}