python3Packages.doublemetaphone: init at 1.2i

This commit is contained in:
Daniel Fahey
2025-10-27 00:06:29 +00:00
parent a21f05cdb1
commit 1e34678aa1
2 changed files with 52 additions and 0 deletions
@@ -0,0 +1,50 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
cython,
setuptools,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "doublemetaphone";
version = "1.2i";
pyproject = true;
src = fetchFromGitHub {
owner = "dedupeio";
repo = "doublemetaphone";
tag = "v${version}";
hash = "sha256-VPJqHxQHLiLSko+aJYTIgISluHPARgQN5pYWYxP9QKQ=";
};
build-system = [
cython
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];
# Prevent importing from source during test collection (only $out has compiled extensions)
preCheck = ''
rm -rf doublemetaphone
'';
pythonImportsCheck = [
"doublemetaphone"
];
meta = {
description = "Python wrapper for Double Metaphone phonetic encoding algorithm";
homepage = "https://github.com/dedupeio/doublemetaphone";
license = lib.licenses.artistic1;
maintainers = with lib.maintainers; [ daniel-fahey ];
};
}
+2
View File
@@ -4377,6 +4377,8 @@ self: super: with self; {
dotwiz = callPackage ../development/python-modules/dotwiz { };
doublemetaphone = callPackage ../development/python-modules/doublemetaphone { };
doubleratchet = callPackage ../development/python-modules/doubleratchet { };
doubles = callPackage ../development/python-modules/doubles { };