Skip to content

Commit 4f0c918

Browse files
authored
Merge pull request #219 from ComputerScienceHouse/wdn/nix
add nix shell for development
2 parents 5249efe + 308dc21 commit 4f0c918

3 files changed

Lines changed: 16 additions & 2 deletions

File tree

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use nix

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
line-length = 100
44
skip-string-normalization = true
55
# default is per-file auto-detection
6-
target-version = ['py38']
7-
include = '\.py$'
6+
target-version = ['py313']
7+
include = '\.py$'

shell.nix

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# https://github.com/NixOS/nixpkgs/issues/205072
2+
{ pkgs ? import <nixpkgs> { } }:
3+
4+
let
5+
pythonEnv = pkgs.python3.withPackages (ps: with ps; [ websockify ]);
6+
in
7+
pkgs.mkShell {
8+
packages = [
9+
pythonEnv
10+
pkgs.openldap
11+
pkgs.cyrus_sasl
12+
];
13+
}

0 commit comments

Comments
 (0)