nixpkgs/pkgs/development/python-modules/pygrok/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

35 lines
734 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 = "Python implementation of jordansissel's grok regular expression library";
homepage = "https://github.com/garyelephant/pygrok";
license = licenses.mit;
platforms = platforms.unix;
};
}