16 lines
415 B
Nix
16 lines
415 B
Nix
|
{
|
||
|
pkgs ? import <nixpkgs> {},
|
||
|
mkPoetryEnv ? ((builtins.getFlake "github:nix-community/poetry2nix").lib.mkPoetry2Nix {inherit pkgs;}).mkPoetryEnv,
|
||
|
}:
|
||
|
pkgs.mkShellNoCC {
|
||
|
packages = with pkgs; [
|
||
|
(mkPoetryEnv {
|
||
|
projectDir = ./.;
|
||
|
preferWheels = true;
|
||
|
editablePackageSources = {nix_background_upgrade = ./src;};
|
||
|
extraPackages = ps: with ps; [python-lsp-server];
|
||
|
})
|
||
|
poetry
|
||
|
];
|
||
|
}
|