Something went wrong. Try again.
lol
Something went wrong. Try again.
1.1 kB · 53 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, buildPythonPackage, cargo, fetchFromGitHub, pytestCheckHook, rustc, rustPlatform, unicodecsv,}:
buildPythonPackage rec { pname = "jellyfish"; version = "1.2.1"; pyproject = true;
src = fetchFromGitHub { owner = "jamesturk"; repo = "jellyfish"; rev = "v${version}"; hash = "sha256-jKz7FYzV66TUkJZfWDTy8GXmTZ6SU5jEdtkjYLDfS/8="; };
cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; };
postPatch = '' ln -s ${./Cargo.lock} Cargo.lock '';
build-system = [ cargo rustPlatform.cargoSetupHook rustPlatform.maturinBuildHook rustc ];
nativeCheckInputs = [ pytestCheckHook unicodecsv ];
pythonImportsCheck = [ "jellyfish" ];
meta = { description = "Python library for doing approximate and phonetic matching of strings"; homepage = "https://github.com/jamesturk/jellyfish"; changelog = "https://github.com/jamesturk/jellyfish/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ koral ]; };}