From cb3e6e72b9f6d5427b8f757df23c9d00c6521e6f Mon Sep 17 00:00:00 2001 From: Ivan Kozik Date: Thu, 13 Dec 2018 10:48:18 +0000 Subject: [PATCH] pythonPackages.fb-re2: init at 1.0.6 --- .../python-modules/fb-re2/default.nix | 30 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/python-modules/fb-re2/default.nix 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 { };