python3Packages.simplecosine: init at 1.2

This commit is contained in:
Daniel Fahey
2025-10-27 00:06:30 +00:00
parent 2b85955dd1
commit 5ad8a6252c
2 changed files with 52 additions and 0 deletions
@@ -0,0 +1,50 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
numpy,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "simplecosine";
version = "1.2";
pyproject = true;
src = fetchFromGitHub {
owner = "dedupeio";
repo = "simplecosine";
tag = "v${version}";
hash = "sha256-TNQnSbCh7o5JsxvfljRGSNwptwpLHmVw9gyk0TELDek=";
};
build-system = [
setuptools
];
dependencies = [
numpy
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"simplecosine"
];
meta = {
description = "Simple cosine distance calculation for string comparison";
homepage = "https://github.com/dedupeio/simplecosine";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ daniel-fahey ];
};
}
+2
View File
@@ -16852,6 +16852,8 @@ self: super: with self; {
simplebayes = callPackage ../development/python-modules/simplebayes { };
simplecosine = callPackage ../development/python-modules/simplecosine { };
simpleeval = callPackage ../development/python-modules/simpleeval { };
simplefin4py = callPackage ../development/python-modules/simplefin4py { };