Add nix shell

This commit is contained in:
Inex Code 2022-01-24 21:56:48 +02:00
parent 5140081cdb
commit 08c7f62e93
1 changed files with 29 additions and 0 deletions

29
shell.nix Normal file
View File

@ -0,0 +1,29 @@
{ pkgs ? import <nixpkgs> {} }:
let
sp-python = pkgs.python39.withPackages (p: with p; [
flask
flask-restful
setuptools
portalocker
flask-swagger
flask-swagger-ui
pytz
pytest
pytest-mock
pytest-datadir
huey
gevent
mnemonic
coverage
]);
in
pkgs.mkShell {
buildInputs = [
sp-python
pkgs.black
];
shellHook = ''
PYTHONPATH=${sp-python}/${sp-python.sitePackages}
# maybe set more env-vars
'';
}