Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 58 lines
Nix
at llvm-cleanup
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ lib, pkgs, buildPythonPackage, fetchFromGitHub, pdm-backend, setuptools, wheel, pcre, pkg-config, pytestCheckHook, pytest-mock,}:
buildPythonPackage rec { pname = "hyperscan"; version = "0.7.7"; pyproject = true;
src = fetchFromGitHub { owner = "darvid"; repo = "python-hyperscan"; rev = "refs/tags/v${version}"; hash = "sha256-TNiGh89SnGi0WAqfYudsj7GaVhOifi8ZcmTrMtVbk+c="; };
buildInputs = [ (pkgs.hyperscan.override { withStatic = true; }) # we need static pcre to be built, by default only shared library is built (pcre.overrideAttrs { dontDisableStatic = 0; }) ];
nativeBuildInputs = [ pkg-config pdm-backend setuptools wheel ];
pythonImportsCheck = [ "hyperscan" ];
nativeCheckInputs = [ pytestCheckHook pytest-mock ];
meta = with lib; { description = "A CPython extension for the Hyperscan regular expression matching library"; homepage = "https://github.com/darvid/python-hyperscan"; changelog = "https://github.com/darvid/python-hyperscan/blob/${src.rev}/CHANGELOG.md"; platforms = [ "x86_64-linux" "x86_64-darwin" ]; license = licenses.mit; maintainers = with maintainers; [ mbalatsko ]; };}