diff --git a/pkgs/development/python-modules/beanhub-inbox/default.nix b/pkgs/development/python-modules/beanhub-inbox/default.nix new file mode 100644 index 000000000000..af98ff441e3b --- /dev/null +++ b/pkgs/development/python-modules/beanhub-inbox/default.nix @@ -0,0 +1,57 @@ +{ + lib, + buildPythonPackage, + email-validator, + fetchFromGitHub, + hatchling, + jinja2, + lxml, + ollama, + pydantic, + pytest-dotenv, + pytest-factoryboy, + pytest-mock, + pytestCheckHook, + pyyaml, +}: + +buildPythonPackage rec { + pname = "beanhub-inbox"; + version = "0.2.3"; + pyproject = true; + + src = fetchFromGitHub { + owner = "LaunchPlatform"; + repo = "beanhub-inbox"; + tag = version; + hash = "sha256-WWfZsJRm2rJI85vmFt/AtV++5vpSTJZpRrk3PdHMhAA="; + }; + + build-system = [ hatchling ]; + + dependencies = [ + email-validator + jinja2 + lxml + ollama + pydantic + pyyaml + ]; + + nativeCheckInputs = [ + pytest-dotenv + pytest-factoryboy + pytest-mock + pytestCheckHook + ]; + + pythonImportsCheck = [ "beanhub_inbox" ]; + + meta = { + description = "Email processing engine for archiving and extracting financial data with LLM"; + homepage = "https://github.com/LaunchPlatform/beanhub-inbox"; + changelog = "https://github.com/LaunchPlatform/beanhub-inbox/releases/tag${src.tag}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 868696153ff8..af7cc5fab53b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1805,6 +1805,8 @@ self: super: with self; { beanhub-import = callPackage ../development/python-modules/beanhub-import { }; + beanhub-inbox = callPackage ../development/python-modules/beanhub-inbox { }; + beanquery = callPackage ../development/python-modules/beanquery { }; beanstalkc = callPackage ../development/python-modules/beanstalkc { };