-
-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac1bb3e
commit 0c5893f
Showing
3 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ lib | ||
, python3 | ||
, fetchFromGitHub | ||
}: | ||
|
||
python3.pkgs.buildPythonApplication rec { | ||
pname = "posting"; | ||
version = "1.1.0"; | ||
pyproject = true; | ||
|
||
src = fetchFromGitHub { | ||
owner = "darrenburns"; | ||
repo = "posting"; | ||
rev = version; | ||
hash = "sha256-kvRYS1tFBWWpXm47fa/zDhE4WjJqNsaWRrGU+lcBcys="; | ||
}; | ||
|
||
build-system = [ | ||
python3.pkgs.hatchling | ||
]; | ||
|
||
dependencies = with python3.pkgs; [ | ||
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; | ||
|
||
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"; | ||
}; | ||
} |
38 changes: 38 additions & 0 deletions
38
pkgs/development/python-modules/textual-autocomplete/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchFromGitHub | ||
, poetry-core | ||
, textual | ||
, typing-extensions | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "textual-autocomplete"; | ||
version = "3.0.0a9"; | ||
pyproject = true; | ||
|
||
src = fetchFromGitHub { | ||
owner = "darrenburns"; | ||
repo = "textual-autocomplete"; | ||
rev = "bbacfa91bfd9ff006dab8930a8a3fe4ba46853ab"; | ||
hash = "sha256-m2ATH2BNoVCoEzKb5xxe4KPvUlfrwfE+widRIdApkL8="; | ||
}; | ||
|
||
build-system = [ | ||
poetry-core | ||
]; | ||
|
||
dependencies = [ | ||
textual | ||
typing-extensions | ||
]; | ||
|
||
pythonImportsCheck = [ "textual_autocomplete" ]; | ||
|
||
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters