Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Posting: init at 1.10.0 #325971

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19573,6 +19573,12 @@
githubId = 6457015;
name = "Taha Gharib";
};
taha-yassine = {
email = "taha.yssne@gmail.com";
github = "taha-yassine";
githubId = 40228615;
name = "Taha Yassine";
};
taikx4 = {
email = "taikx4@taikx4szlaj2rsdupcwabg35inbny4jk322ngeb7qwbbhd5i55nf5yyd.onion";
github = "taikx4";
Expand Down
63 changes: 63 additions & 0 deletions pkgs/by-name/po/posting/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
lib,
python3Packages,
fetchFromGitHub,
}:

python3Packages.buildPythonApplication rec {
pname = "posting";
version = "1.10.0";
pyproject = true;

src = fetchFromGitHub {
owner = "darrenburns";
repo = "posting";
rev = "refs/tags/${version}";
hash = "sha256-g8SlW7YLz/H5euZZIaNbB+mUqM630HSzVHUoIIZI/1g=";
};

build-system = [ python3Packages.hatchling ];

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

pythonRelaxDeps = true;

# Fix tests by preventing them from writing to /homeless-shelter.
preCheck = "export HOME=$(mktemp -d)";

nativeCheckInputs = with python3Packages; [
pytestCheckHook
textual-dev
jinja2
syrupy
pytest-xdist
pytest-cov
pytest-textual-snapshot
];

pythonImportsCheck = [ "posting" ];

meta = {
description = "Modern API client that lives in your terminal";
homepage = "https://github.com/darrenburns/posting";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ taha-yassine ];
mainProgram = "posting";
};
}
39 changes: 39 additions & 0 deletions pkgs/development/python-modules/textual-autocomplete/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
textual,
typing-extensions,
}:

buildPythonPackage {
pname = "textual-autocomplete";
version = "3.0.0a9";
pyproject = true;

src = fetchFromGitHub {
owner = "darrenburns";
repo = "textual-autocomplete";
rev = "bbacfa91bfd9ff006dab8930a8a3fe4ba46853ab"; # targets `version-two` branch
hash = "sha256-m2ATH2BNoVCoEzKb5xxe4KPvUlfrwfE+widRIdApkL8=";
};

build-system = [ poetry-core ];

dependencies = [
textual
typing-extensions
];

pythonImportsCheck = [ "textual_autocomplete" ];

doCheck = false; # no tests

meta = {
description = "Easily add autocomplete dropdowns to your Textual apps";
homepage = "https://github.com/darrenburns/textual-autocomplete";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ taha-yassine ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15223,6 +15223,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-universal-directorytree = callPackage ../development/python-modules/textual-universal-directorytree { };
Expand Down