diff --git a/pkgs/development/python-modules/fb-re2/default.nix b/pkgs/development/python-modules/fb-re2/default.nix new file mode 100644 index 000000000000..88a75d29fd18 --- /dev/null +++ b/pkgs/development/python-modules/fb-re2/default.nix @@ -0,0 +1,30 @@ +{ lib +, buildPythonPackage +, fetchPypi +, re2 +, pytest +}: + +buildPythonPackage rec { + pname = "fb-re2"; + version = "1.0.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "0wd97qdcafcca90s6692g2dmzl5n6cdvm20vn7pmag3l9gvx395c"; + }; + + buildInputs = [ re2 ]; + + checkInputs = [ pytest ]; + checkPhase = '' + py.test + ''; + + meta = { + description = "Python wrapper for Google's RE2"; + homepage = https://github.com/facebook/pyre2; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ ivan ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4a0fea0b4f32..8020cf2fb898 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1671,6 +1671,8 @@ in { then callPackage ../development/python-modules/faulthandler {} else throw "faulthandler is built into ${python.executable}"; + fb-re2 = callPackage ../development/python-modules/fb-re2 { }; + flit = callPackage ../development/python-modules/flit { }; flowlogs_reader = callPackage ../development/python-modules/flowlogs_reader { };