From 08c7f62e9315ddaf2da2614c64ee7724441b50cd Mon Sep 17 00:00:00 2001 From: Inex Code Date: Mon, 24 Jan 2022 21:56:48 +0200 Subject: [PATCH] Add nix shell --- shell.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..3caf439 --- /dev/null +++ b/shell.nix @@ -0,0 +1,29 @@ +{ pkgs ? import {} }: +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 + ''; +} \ No newline at end of file