Commit 5ad8a625 authored by Daniel Fahey's avatar Daniel Fahey
Browse files

python3Packages.simplecosine: init at 1.2

parent 2b85955d
Loading
Loading
Loading
Loading
+50 −0
Original line number Diff line number Diff line
{
  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 −0
Original line number Diff line number Diff line
@@ -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 { };