mirror of
https://seed.flo-the.dev/z3gWc1qgaeZaoGwL4WTstLNoqjayM.git
synced 2025-12-06 04:47:35 +01:00
prepare for pytest
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
27
devenv.nix
27
devenv.nix
@@ -5,20 +5,20 @@
|
||||
, ...
|
||||
}:
|
||||
|
||||
let
|
||||
req = pkgs.concatText "req" [
|
||||
./requirements.txt
|
||||
./requirements-dev.txt
|
||||
];
|
||||
in
|
||||
|
||||
{
|
||||
# https://devenv.sh/basics/
|
||||
# env.GREET = "devenv";
|
||||
|
||||
# https://devenv.sh/packages/
|
||||
packages = [ pkgs.file pkgs.swig4 pkgs.openssl ];
|
||||
|
||||
# https://devenv.sh/scripts/
|
||||
# scripts.hello.exec = "echo hello from $GREET";
|
||||
|
||||
# enterShell = ''
|
||||
# hello
|
||||
# git --version
|
||||
# '';
|
||||
packages = [
|
||||
pkgs.file
|
||||
pkgs.swig4
|
||||
pkgs.openssl
|
||||
];
|
||||
|
||||
# https://devenv.sh/tests/
|
||||
# enterTest = ''
|
||||
@@ -35,7 +35,7 @@
|
||||
enable = true;
|
||||
venv = {
|
||||
enable = true;
|
||||
requirements = ./requirements.txt;
|
||||
requirements = builtins.readFile req;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -54,7 +54,6 @@
|
||||
pylint.enable = true;
|
||||
detect-private-keys.enable = true;
|
||||
|
||||
|
||||
};
|
||||
|
||||
# https://devenv.sh/processes/
|
||||
|
||||
Reference in New Issue
Block a user