evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / stringzilla / default.nix
blobe806a6cc5895ae88c3ef7a40c01b290d1b299a50
2   buildPythonPackage,
3   cargo,
4   fetchFromGitHub,
5   lib,
6   numpy,
7   pytest-repeat,
8   pytestCheckHook,
9   rustPlatform,
10   rustc,
11   setuptools,
14 buildPythonPackage rec {
15   pname = "stringzilla";
16   version = "3.10.7";
17   pyproject = true;
19   src = fetchFromGitHub {
20     owner = "ashvardanian";
21     repo = "stringzilla";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-36W7/PL8nRty8cHuMoTr73tQ4uvtjkwP9lyzNLCuhv0=";
24   };
26   cargoDeps = rustPlatform.fetchCargoTarball {
27     inherit src;
28     name = "${pname}-${version}";
29     hash = "sha256-qa03Jd0MMtDwkp2E81MacRMbzD/O7E29BT0tc2OjLiY=";
30   };
32   build-system = [
33     setuptools
34   ];
36   nativeBuildInputs = [
37     cargo
38     rustPlatform.cargoSetupHook
39     rustc
40   ];
42   pythonImportsCheck = [ "stringzilla" ];
44   nativeCheckInputs = [
45     numpy
46     pytest-repeat
47     pytestCheckHook
48   ];
50   pytestFlagsArray = [ "scripts/test.py" ];
52   meta = {
53     changelog = "https://github.com/ashvardanian/StringZilla/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
54     description = "SIMD-accelerated string search, sort, hashes, fingerprints, & edit distances";
55     homepage = "https://github.com/ashvardanian/stringzilla";
56     license = lib.licenses.asl20;
57     maintainers = with lib.maintainers; [ dotlambda ];
58   };