Files
nixpkgs/pkgs/development/python-modules/jellyfish/default.nix
T
Martin Weinelt 8ea6bde88d treewide: prune pythonOlder 3.10/3.11
This is a post 3.10 removal cleanup.
2026-02-15 04:33:54 +01:00

54 lines
1.0 KiB
Nix

{
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 ];
};
}