python3Packages.hyperscan: 0.7.8 -> 0.7.9

This commit is contained in:
Tomas Drtina
2025-02-28 17:15:26 +01:00
parent 36cfd16bda
commit 43779a71ee
@@ -3,42 +3,51 @@
pkgs,
buildPythonPackage,
fetchFromGitHub,
pdm-backend,
setuptools,
wheel,
symlinkJoin,
cmake,
ninja,
pathspec,
pcre,
pkg-config,
scikit-build-core,
pytestCheckHook,
pytest-mock,
}:
let
lib-deps = symlinkJoin {
name = "hyperscan-static-deps";
paths = [
(pkgs.hyperscan.override { withStatic = true; })
(pcre.overrideAttrs { dontDisableStatic = 0; }).out
];
};
in
buildPythonPackage rec {
pname = "hyperscan";
version = "0.7.8";
version = "0.7.9";
pyproject = true;
src = fetchFromGitHub {
owner = "darvid";
repo = "python-hyperscan";
tag = "v${version}";
hash = "sha256-gNXE2VjHRTmIMyoLyTsmC9CuY3YT5ZsKfNZvMRthPn0=";
hash = "sha256-tf3dQgY0p+J6GIS8pB3+kvomNVYcbMJ+72T8IVbrnrU=";
};
buildInputs = [
(pkgs.hyperscan.override { withStatic = true; })
# we need static pcre to be built, by default only shared library is built
(pcre.overrideAttrs { dontDisableStatic = 0; })
];
env.CMAKE_ARGS = "-DHS_SRC_ROOT=${pkgs.hyperscan.src} -DHS_BUILD_LIB_ROOT=${lib-deps}/lib";
dontUseCmakeConfigure = true;
nativeBuildInputs = [
pkg-config
pdm-backend
setuptools
wheel
cmake
pathspec
ninja
scikit-build-core
];
pythonImportsCheck = [ "hyperscan" ];
pytestFlagsArray = [ "tests" ];
nativeCheckInputs = [
pytestCheckHook
pytest-mock