3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/fb-re2/default.nix

31 lines
554 B
Nix
Raw Normal View History

2018-12-13 10:48:18 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, re2
, pytest
}:
buildPythonPackage rec {
pname = "fb-re2";
2019-02-14 07:37:15 +00:00
version = "1.0.7";
2018-12-13 10:48:18 +00:00
src = fetchPypi {
inherit pname version;
2019-02-14 07:37:15 +00:00
sha256 = "83b2c2cd58d3874e6e3a784cf4cf2f1a57ce1969e50180f92b010eea24ef26cf";
2018-12-13 10:48:18 +00:00
};
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 ];
};
}