Loading pkgs/development/python-modules/hyperscan/default.nix +25 −16 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
pkgs/development/python-modules/hyperscan/default.nix +25 −16 Original line number Diff line number Diff line Loading @@ -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 Loading