From 4cdd59b239f82b93fa18f559f5a39d662b2e681b Mon Sep 17 00:00:00 2001 From: Willard Nilges Date: Sun, 1 Mar 2026 12:12:53 -0500 Subject: [PATCH 1/2] add nix shell --- .envrc | 1 + pyproject.toml | 4 ++-- shell.nix | 13 +++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 .envrc create mode 100644 shell.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..1d953f4 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use nix diff --git a/pyproject.toml b/pyproject.toml index b8ad7e2..0914385 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,5 +3,5 @@ line-length = 100 skip-string-normalization = true # default is per-file auto-detection -target-version = ['py38'] -include = '\.py$' \ No newline at end of file +target-version = ['py313'] +include = '\.py$' diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..6ba2eb1 --- /dev/null +++ b/shell.nix @@ -0,0 +1,13 @@ +# https://github.com/NixOS/nixpkgs/issues/205072 +{ pkgs ? import { } }: + +let + pythonEnv = pkgs.python3.withPackages (ps: with ps; [ ]); +in +pkgs.mkShell { + packages = [ + pythonEnv + pkgs.openldap + pkgs.cyrus_sasl + ]; +} From 308dc217b947860db466e4b2a84ea1ece012aa5d Mon Sep 17 00:00:00 2001 From: Willard Nilges Date: Sun, 1 Mar 2026 16:33:57 -0500 Subject: [PATCH 2/2] add websockify --- shell.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell.nix b/shell.nix index 6ba2eb1..1a02f86 100644 --- a/shell.nix +++ b/shell.nix @@ -2,7 +2,7 @@ { pkgs ? import { } }: let - pythonEnv = pkgs.python3.withPackages (ps: with ps; [ ]); + pythonEnv = pkgs.python3.withPackages (ps: with ps; [ websockify ]); in pkgs.mkShell { packages = [