mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-03-20 21:39:44 +00:00
Add nix shell
This commit is contained in:
parent
5140081cdb
commit
08c7f62e93
1 changed files with 29 additions and 0 deletions
29
shell.nix
Normal file
29
shell.nix
Normal 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
|
||||
'';
|
||||
}
|
Loading…
Add table
Reference in a new issue