add shell.nix and update README

This commit is contained in:
Daniel Langbein 2023-09-28 17:12:10 +02:00
parent af22d21f42
commit 6f9a388d23
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
3 changed files with 28 additions and 2 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
/venv/
/build/
**/*.egg-info/
/dist/
# makepkg
/packaging/netcup-dns/

View File

@ -4,13 +4,25 @@ Update DNS A/AAAA records with your current external IP address using the netcup
## Installation
On Arch Linux:
Install release from PyPI (https://pypi.org/project/netcup-dns/):
```shell
pip install netcup-dns
```
Install release from TestPyPI (https://test.pypi.org/project/netcup-dns/):
```shell
pip install -i https://test.pypi.org/simple/ netcup-dns
```
Build and install on Arch Linux:
```shell
make
```
With `pip`:
Build and install with `pip`:
```shell
make install-pip

13
shell.nix Normal file
View File

@ -0,0 +1,13 @@
# https://nixos.wiki/wiki/Python#Development_shell
{ pkgs ? import <nixpkgs> {} }:
let
my-python-packages = ps: with ps; [
requests
nc-dnsapi
# Build dependencies only.
build
twine
];
my-python = pkgs.python3.withPackages my-python-packages;
in my-python.env