pythonPackages.fb-re2: init at 1.0.6

This commit is contained in:
Ivan Kozik 2018-12-13 10:48:18 +00:00
parent 33b906bacf
commit cb3e6e72b9
2 changed files with 32 additions and 0 deletions

View File

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

View File

@ -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 { };