Unverified Commit a713dc80 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python313Packages.beanhub-inbox: init at 0.2.3, python313Packages.beanhub-cli:...

python313Packages.beanhub-inbox: init at 0.2.3, python313Packages.beanhub-cli: add beanhub-inbox (#440739)
parents 4a5ab1eb 26b22f45
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -3,17 +3,17 @@
  fetchFromGitHub,
  buildPythonPackage,
  pythonOlder,
  pytestCheckHook,
  hatchling,

  # dependencies
  beancount-black,
  beancount-parser,
  beanhub-forms,
  beanhub-import,
  beanhub-inbox,
  click,
  fastapi,
  jinja2,
  poetry-core,
  pydantic-settings,
  pydantic,
  pyyaml,
@@ -31,10 +31,11 @@
  tomli,

  # tests
  pytest,
  pytest-asyncio,
  pytest-factoryboy,
  pytest-httpx,
  pytest-mock,
  pytestCheckHook,
}:

buildPythonPackage rec {
@@ -51,17 +52,16 @@ buildPythonPackage rec {
    hash = "sha256-hreVGsptCGW6L3rj6Ec8+lefZWpQ4tZtUEJI+NxTO7w=";
  };

  pythonRelaxDeps = [
    "rich"
  ];
  pythonRelaxDeps = [ "rich" ];

  build-system = [ poetry-core ];
  build-system = [ hatchling ];

  dependencies = [
    beancount-black
    beancount-parser
    beanhub-forms
    beanhub-import
    beanhub-inbox
    click
    fastapi
    jinja2
@@ -95,6 +95,7 @@ buildPythonPackage rec {

  nativeCheckInputs = [
    pytest-asyncio
    pytest-factoryboy
    pytest-httpx
    pytest-mock
    pytestCheckHook
@@ -105,10 +106,10 @@ buildPythonPackage rec {

  meta = {
    description = "Command line tools for BeanHub or Beancount users";
    mainProgram = "bh";
    homepage = "https://github.com/LaunchPlatform/beanhub-cli/";
    changelog = "https://github.com/LaunchPlatform/beanhub-cli/releases/tag/${src.tag}";
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [ fangpen ];
    mainProgram = "bh";
  };
}
+57 −0
Original line number Diff line number Diff line
{
  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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -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 { };