mirror of
https://codeberg.org/privacy1st/netcup-dns
synced 2024-12-22 23:36:04 +01:00
add shell.nix and update README
This commit is contained in:
parent
af22d21f42
commit
6f9a388d23
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,6 +3,7 @@
|
||||
/venv/
|
||||
/build/
|
||||
**/*.egg-info/
|
||||
/dist/
|
||||
|
||||
# makepkg
|
||||
/packaging/netcup-dns/
|
||||
|
16
README.md
16
README.md
@ -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
13
shell.nix
Normal 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
|
Loading…
Reference in New Issue
Block a user