From 324e0f5a32f09b63320a3d694945b198d5531337 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ng=C3=B4=20Ng=E1=BB=8Dc=20=C4=90=E1=BB=A9c=20Huy?= Date: Mon, 18 Dec 2023 09:56:43 +0700 Subject: [PATCH] Add shell.nix for development --- README.rst | 5 +++-- shell.nix | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 shell.nix diff --git a/README.rst b/README.rst index 1c33354..7ca10ba 100644 --- a/README.rst +++ b/README.rst @@ -2,8 +2,9 @@ Witchie - an Akkoma CLI client ============================ -Witchie is a CLI and TUI tool for interacting with Akkoma instances from the command line. -It is a fork of [ibuhanek's toot](https://github.com/ihabunek/toot) for Mastodon. +Witchie is a CLI and TUI tool for interacting with Akkoma instances from the +command line. It is a fork of [ibuhanek's toot](https://github.com/ihabunek/toot) +for Mastodon to add Akkoma-specific features, such as custom emoji reacts or quote. Resources --------- diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..fc31eab --- /dev/null +++ b/shell.nix @@ -0,0 +1,22 @@ +# SPDX-FileCopyrightText: 2023 Ngô Ngọc Đức Huy +# +# SPDX-License-Identifier: CC0-1.0 + +{pkgs ? import {} +}: +pkgs.mkShell { + name="python-env"; + buildInputs = with pkgs; [ + python3 + ] ++ (with python3Packages; [ + requests + beautifulsoup4 + wcwidth + urwid + tomlkit + #urwidgets + ]); + shellHook = '' + echo "Entering python environment for witchie..." + ''; +}