Skip to content

Commit

Permalink
Merge pull request #303857 from tnias/update/pyperscan-0.3.0
Browse files Browse the repository at this point in the history
python311Packages.pyperscan: 0.2.2 -> 0.3.0
  • Loading branch information
pbsds authored Jun 5, 2024
2 parents e383ef7 + 31c87c6 commit cbfb6f1
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions pkgs/development/python-modules/pyperscan/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@

buildPythonPackage rec {
pname = "pyperscan";
version = "0.2.2";
version = "0.3.0";
format = "pyproject";

src = fetchFromGitHub {
owner = "vlaci";
repo = "pyperscan";
rev = "v${version}";
hash = "sha256-ioNGEmWy+lEzazF1RzMFS06jYLNYll3QSlWAF0AoU7Y=";
hash = "sha256-uGZ0XFxnZHSLEWcwoHVd+xMulDRqEIrQ5Lf7886GdlM=";
};

cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-2zppyxJ+XaI/JCkp7s27/jgtSbwxnI4Yil5KT8WgrVI=";
hash = "sha256-a4jNofPIHoKwsD82y2hG2QPu+eM5D7FSGCm2nDo2cLA=";
};

nativeBuildInputs = with rustPlatform; [
Expand All @@ -37,14 +37,12 @@ buildPythonPackage rec {

buildInputs = [ vectorscan ] ++ lib.optional stdenv.isDarwin libiconv;

# Disable default features to use the system vectorscan library instead of a vendored one.
maturinBuildFlags = [ "--no-default-features" ];

pythonImportsCheck = [ "pyperscan" ];

meta = with lib; {
description = "a hyperscan binding for Python, which supports vectorscan";
homepage = "https://github.com/vlaci/pyperscan";
homepage = "https://vlaci.github.io/pyperscan/";
changelog = "https://github.com/vlaci/pyperscan/releases/tag/${src.rev}";
platforms = platforms.unix;
license = with licenses; [
asl20 # or
Expand Down

0 comments on commit cbfb6f1

Please sign in to comment.