Commit 12f7b1ce authored by Doron Behar's avatar Doron Behar
Browse files

python312Packages.dawg2-python: init at 0.9.0

parent a4d32962
Loading
Loading
Loading
Loading
+51 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  poetry-core,

  # dependencies
  typing-extensions,

  # tests
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "dawg2-python";
  version = "0.9.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "pymorphy2-fork";
    repo = "DAWG-Python";
    tag = version;
    hash = "sha256-45k7QmozbMt7qYdDFRSL5JDeEtqdMHBoEXXQkLDoGfE=";
  };

  build-system = [
    poetry-core
  ];

  dependencies = [
    typing-extensions
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "dawg_python"
  ];

  meta = {
    description = "Pure-python reader for DAWGs created by dawgdic C++ library or DAWG Python extension. Fork of  https://github.com/pytries/DAWG-Python";
    homepage = "https://github.com/pymorphy2-fork/DAWG-Python";
    changelog = "https://github.com/pymorphy2-fork/DAWG-Python/blob/${src.tag}/CHANGES.md";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ doronbehar ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -3450,6 +3450,8 @@ self: super: with self; {
  dawg-python = callPackage ../development/python-modules/dawg-python { };
  dawg2-python = callPackage ../development/python-modules/dawg2-python { };
  dazl = callPackage ../development/python-modules/dazl { };
  db-dtypes = callPackage ../development/python-modules/db-dtypes { };