From fe638e6c1320d9b56969a8acba865b4c664e1e4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 20 Oct 2024 10:27:01 -0700 Subject: [PATCH 1/3] python312Packages.stringzilla: init at 3.10.5 --- .../python-modules/stringzilla/default.nix | 59 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 61 insertions(+) create mode 100644 pkgs/development/python-modules/stringzilla/default.nix diff --git a/pkgs/development/python-modules/stringzilla/default.nix b/pkgs/development/python-modules/stringzilla/default.nix new file mode 100644 index 000000000000..7fc432e3ea19 --- /dev/null +++ b/pkgs/development/python-modules/stringzilla/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0e4926959ab1..04bb9d80393b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15135,6 +15135,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 { }; From 904064720c402671e165e1c913dc98e0870b424d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 20 Oct 2024 10:15:54 -0700 Subject: [PATCH 2/3] python312Packages.albucore: 0.0.17 -> 0.0.19 Diff: https://github.com/albumentations-team/albucore/compare/refs/tags/0.0.17...0.0.19 Changelog: https://github.com/albumentations-team/albucore/releases/tag/0.0.18 https://github.com/albumentations-team/albucore/releases/tag/0.0.19 --- pkgs/development/python-modules/albucore/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/albucore/default.nix b/pkgs/development/python-modules/albucore/default.nix index 07f2e3f4ce72..285c643038d7 100644 --- a/pkgs/development/python-modules/albucore/default.nix +++ b/pkgs/development/python-modules/albucore/default.nix @@ -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" ]; From 3a08e4434d36323c66b7938b3e422962e485242f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 26 Oct 2024 22:38:05 -0700 Subject: [PATCH 3/3] python312Packages.albumentations: 1.4.18 -> 1.4.20 Diff: https://github.com/albumentations-team/albumentations/compare/refs/tags/1.4.18...1.4.20 Changelog: https://github.com/albumentations-team/albumentations/releases/tag/1.4.19 https://github.com/albumentations-team/albumentations/releases/tag/1.4.20 --- pkgs/development/python-modules/albumentations/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/albumentations/default.nix b/pkgs/development/python-modules/albumentations/default.nix index 1f44d339500d..a613b6340754 100644 --- a/pkgs/development/python-modules/albumentations/default.nix +++ b/pkgs/development/python-modules/albumentations/default.nix @@ -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 = [