8ea6bde88d
This is a post 3.10 removal cleanup.
54 lines
1.0 KiB
Nix
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 ];
|
|
};
|
|
}
|