mirror of
https://codeberg.org/hyperreal/bin
synced 2024-11-25 10:23:42 +01:00
Add nix shell env
This commit is contained in:
parent
7bb0f1f6bb
commit
f9cf2b76e7
13
.gitignore
vendored
13
.gitignore
vendored
@ -1,12 +1 @@
|
||||
.DS_Store
|
||||
.idea
|
||||
*.log
|
||||
tmp/
|
||||
|
||||
.ruby-version
|
||||
.bundle
|
||||
vendor
|
||||
Gemfile.lock
|
||||
coverage
|
||||
|
||||
gemtext2md
|
||||
.direnv
|
||||
|
@ -1,9 +1,14 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env nix-shell
|
||||
#! nix-shell -i python3 --packages python3 python312Packages.resend
|
||||
|
||||
import os
|
||||
import resend
|
||||
import subprocess
|
||||
|
||||
resend.api_key = os.environ["RESEND_API_KEY"]
|
||||
resend.api_key = subprocess.run(
|
||||
["kwallet-query", "-r", "resend_api_key", "default", "-f", "Passwords"],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
).stdout.strip("\n")
|
||||
|
||||
params: resend.Emails.SendParams = {
|
||||
"from": "Borgmatic <onboarding@resend.dev>",
|
||||
|
20
shell.nix
Normal file
20
shell.nix
Normal file
@ -0,0 +1,20 @@
|
||||
with import <nixpkgs> { };
|
||||
|
||||
mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
gum
|
||||
python312Packages.beautifulsoup4
|
||||
python312Packages.black
|
||||
python312Packages.bpython
|
||||
python312Packages.docopt
|
||||
python312Packages.isort
|
||||
python312Packages.pip
|
||||
python312Packages.pytest
|
||||
python312Packages.requests
|
||||
python312Packages.resend
|
||||
python312Packages.rich
|
||||
pyright
|
||||
shellcheck
|
||||
shfmt
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue
Block a user