depot/third_party/nixpkgs/pkgs/development/python-modules/pygrok/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

29 lines
726 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, regex, pytest }:
buildPythonPackage rec {
pname = "pygrok";
version = "1.0.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "garyelephant";
repo = "pygrok";
rev = "v${version}";
sha256 = "07487rcmv74srnchh60jp0vg46g086qmpkaj8gxqhp9rj47r1s4m";
};
propagatedBuildInputs = [ regex ];
nativeCheckInputs = [ pytest ];
checkPhase = ''
pytest
'';
meta = with lib; {
maintainers = with maintainers; [ winpat ];
description = "A python implementation of jordansissel's grok regular expression library";
homepage = "https://github.com/garyelephant/pygrok";
license = licenses.mit;
platforms = platforms.unix;
};
}