mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-22 04:01:27 +00:00
fix devshell: Strawberry CLI dependencies
This commit is contained in:
parent
b4fe79fdce
commit
ad6514658d
25
flake.nix
25
flake.nix
|
@ -7,9 +7,8 @@
|
|||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
pythonPackages = pkgs.python310Packages;
|
||||
selfprivacy-graphql-api = pkgs.callPackage ./default.nix {
|
||||
inherit pythonPackages;
|
||||
pythonPackages = pkgs.python310Packages;
|
||||
rev = self.shortRev or self.dirtyShortRev or "dirty";
|
||||
};
|
||||
python = self.packages.${system}.default.pythonModule;
|
||||
|
@ -20,7 +19,14 @@
|
|||
pytest
|
||||
pytest-datadir
|
||||
pytest-mock
|
||||
]));
|
||||
black
|
||||
mypy
|
||||
pylsp-mypy
|
||||
python-lsp-black
|
||||
python-lsp-server
|
||||
typer # for strawberry
|
||||
] ++ strawberry-graphql.optional-dependencies.cli));
|
||||
|
||||
vmtest-src-dir = "/root/source";
|
||||
shellMOTD = ''
|
||||
Welcome to SP API development shell!
|
||||
|
@ -72,16 +78,7 @@
|
|||
import ./nixos/module.nix self.packages.${system}.default;
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
name = "SP API dev shell";
|
||||
packages = with pythonPackages;
|
||||
[
|
||||
black
|
||||
mypy
|
||||
pylsp-mypy
|
||||
python-lsp-black
|
||||
python-lsp-server
|
||||
] ++
|
||||
(with pkgs;
|
||||
[
|
||||
packages = with pkgs; [
|
||||
nixpkgs-fmt
|
||||
rclone
|
||||
redis
|
||||
|
@ -91,7 +88,7 @@
|
|||
self.checks.x86_64-linux.default.driverInteractive
|
||||
# the target API application python environment
|
||||
python-env
|
||||
]);
|
||||
];
|
||||
shellHook = ''
|
||||
# envs set with export and as attributes are treated differently.
|
||||
# for example. printenv <Name> will not fetch the value of an attribute.
|
||||
|
|
Loading…
Reference in a new issue