Commit 576b9e6e authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.levenshtein: format with nixfmt

parent 67648e56
Loading
Loading
Loading
Loading
+22 −27
Original line number Diff line number Diff line
{ lib
, stdenv
, buildPythonPackage
, cmake
, cython
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, rapidfuzz
, rapidfuzz-cpp
, scikit-build
{
  lib,
  stdenv,
  buildPythonPackage,
  cmake,
  cython,
  fetchFromGitHub,
  pytestCheckHook,
  pythonOlder,
  rapidfuzz,
  rapidfuzz-cpp,
  scikit-build,
}:

buildPythonPackage rec {
@@ -34,25 +35,19 @@ buildPythonPackage rec {

  dontUseCmakeConfigure = true;

  buildInputs = [
    rapidfuzz-cpp
  ];
  buildInputs = [ rapidfuzz-cpp ];

  env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.cc.isClang && stdenv.isDarwin) [
  env.NIX_CFLAGS_COMPILE = toString (
    lib.optionals (stdenv.cc.isClang && stdenv.isDarwin) [
      "-fno-lto" # work around https://github.com/NixOS/nixpkgs/issues/19098
  ]);
    ]
  );

  propagatedBuildInputs = [
    rapidfuzz
  ];
  dependencies = [ rapidfuzz ];

  nativeCheckInputs = [
    pytestCheckHook
  ];
  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [
    "Levenshtein"
  ];
  pythonImportsCheck = [ "Levenshtein" ];

  meta = with lib; {
    description = "Functions for fast computation of Levenshtein distance and string similarity";