1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/fb-re2/default.nix

31 lines
542 B
Nix
Raw Normal View History

2018-12-13 10:48:18 +00:00
{ 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 ];
};
}