Unverified Commit 4bf98eb3 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

posting: init at 2.3.0 (#353386)

parents 3793149a 8fa08cdc
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -11418,6 +11418,12 @@
    github = "jordanisaacs";
    githubId = 19742638;
  };
  jorikvanveen = {
    email = "vanveenjorik@protonmail.com";
    github = "jorikvanveen";
    githubId = 33939820;
    name = "Jorik van Veen";
  };
  jorise = {
    email = "info@jorisengbers.nl";
    github = "JorisE";
+56 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  python3Packages,
  xorg,
}:
python3Packages.buildPythonApplication rec {
  pname = "posting";
  version = "2.3.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "darrenburns";
    repo = "posting";
    tag = version;
    hash = "sha256-lL85gJxFw8/e8Js+UCE9VxBMcmWRUkHh8Cq5wTC93KA=";
  };

  pythonRelaxDeps = true;

  build-system = with python3Packages; [
    hatchling
  ];

  # Required for x resources themes
  buildInputs = [ xorg.xrdb ];

  dependencies =
    with python3Packages;
    [
      click
      xdg-base-dirs
      click-default-group
      pyperclip
      pyyaml
      python-dotenv
      watchfiles
      pydantic
      pydantic-settings
      httpx
      textual-autocomplete
      textual
    ]
    ++ httpx.optional-dependencies.brotli
    ++ textual.optional-dependencies.syntax;

  meta = {
    description = "Modern API client that lives in your terminal";
    mainProgram = "posting";
    homepage = "https://posting.sh/";
    changelog = "https://github.com/darrenburns/posting/releases/tag/${version}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ jorikvanveen ];
    platforms = lib.platforms.unix;
  };
}
+45 −0
Original line number Diff line number Diff line
{
  lib,
  python3,
  fetchFromGitHub,
  poetry-core,
  textual,
  typing-extensions,
  hatchling,
}:
python3.pkgs.buildPythonPackage rec {
  pname = "textual_autocomplete";
  version = "3.0.0a13";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "darrenburns";
    repo = "textual-autocomplete";
    rev = "2cb572bf5b1ea0554b396d0833dfb398cb45dc9b";
    hash = "sha256-jfGYC3xDspwEr+KGApGB05VFuzluDe5S9a/Sjg5HtdI=";
  };

  nativeBuildInputs = [
    poetry-core
    hatchling
  ];

  pythonRelaxDeps = true;

  dependencies = [
    textual
    typing-extensions
  ];

  pythonImportsCheck = [
    "textual"
    "typing_extensions"
  ];

  meta = {
    description = "Python library that provides autocomplete capabilities to textual";
    homepage = "https://pypi.org/project/textual-autocomplete";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ jorikvanveen ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -16245,6 +16245,8 @@ self: super: with self; {
  textual = callPackage ../development/python-modules/textual { };
  textual-autocomplete = callPackage ../development/python-modules/textual-autocomplete { };
  textual-dev = callPackage ../development/python-modules/textual-dev { };
  textual-fastdatatable = callPackage ../development/python-modules/textual-fastdatatable { };