python312Packages.albucore: 0.0.17 -> 0.0.19, python312Packages.albumentations: 1.4.18 -> 1.4.20 (#350066)

This commit is contained in:
Robert Schütz 2024-10-27 08:19:04 -07:00 committed by GitHub
commit 4b192e6fe3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 68 additions and 7 deletions

View File

@ -7,21 +7,21 @@
pytestCheckHook,
numpy,
opencv4,
typing-extensions,
stringzilla,
}:
buildPythonPackage rec {
pname = "albucore";
version = "0.0.17";
version = "0.0.19";
pyproject = true;
disabled = pythonOlder "3.8";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "albumentations-team";
repo = "albucore";
rev = "refs/tags/${version}";
hash = "sha256-9fv5jewfL3JKhZyD0YS1WDNZ7wWt+8iF2DcygCOl168=";
hash = "sha256-GwT7Py7pKbpHxx4avj37/hRjSJXdH5uBU11nCITysVw=";
};
pythonRemoveDeps = [ "opencv-python" ];
@ -31,7 +31,7 @@ buildPythonPackage rec {
dependencies = [
numpy
opencv4
typing-extensions
stringzilla
];
pythonImportsCheck = [ "albucore" ];

View File

@ -31,7 +31,7 @@
buildPythonPackage rec {
pname = "albumentations";
version = "1.4.18";
version = "1.4.20";
pyproject = true;
disabled = pythonOlder "3.8";
@ -40,7 +40,7 @@ buildPythonPackage rec {
owner = "albumentations-team";
repo = "albumentations";
rev = "refs/tags/${version}";
hash = "sha256-uAYnbglBT1mduyRnsWWjZ8axG7DzZEVcgAVeMLF48oM=";
hash = "sha256-lyYbkO2J3kpZGk8Q3FYfRiQh+BdolCfeEcjlI3W/rIw=";
};
patches = [

View File

@ -0,0 +1,59 @@
{
buildPythonPackage,
cargo,
fetchFromGitHub,
lib,
numpy,
pytest-repeat,
pytestCheckHook,
rustPlatform,
rustc,
setuptools,
}:
buildPythonPackage rec {
pname = "stringzilla";
version = "3.10.5";
pyproject = true;
src = fetchFromGitHub {
owner = "ashvardanian";
repo = "stringzilla";
rev = "refs/tags/v${version}";
hash = "sha256-E7w6s813OGCld/GRTHMbjVAReTGb37HlB687gP9N9FA=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-36LN9AoAWA//pldmQZtKMrck4EoGUW9G2vzdsRw08SA=";
};
build-system = [
setuptools
];
nativeBuildInputs = [
cargo
rustPlatform.cargoSetupHook
rustc
];
pythonImportsCheck = [ "stringzilla" ];
nativeCheckInputs = [
numpy
pytest-repeat
pytestCheckHook
];
pytestFlagsArray = [ "scripts/test.py" ];
meta = {
changelog = "https://github.com/ashvardanian/StringZilla/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
description = "SIMD-accelerated string search, sort, hashes, fingerprints, & edit distances";
homepage = "https://github.com/ashvardanian/stringzilla";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View File

@ -15145,6 +15145,8 @@ self: super: with self; {
stringparser = callPackage ../development/python-modules/stringparser { };
stringzilla = callPackage ../development/python-modules/stringzilla { };
stripe = callPackage ../development/python-modules/stripe { };
striprtf = callPackage ../development/python-modules/striprtf { };