32 lines
514 B
Nix
32 lines
514 B
Nix
{ pkgs }:
|
|
let
|
|
packages = builtins.attrValues {
|
|
inherit (pkgs)
|
|
pipenv
|
|
pyright
|
|
;
|
|
inherit (pkgs.python3Packages)
|
|
black
|
|
editorconfig
|
|
flake8
|
|
isort
|
|
pyflakes
|
|
pylint
|
|
pytest
|
|
speedtest-cli
|
|
;
|
|
};
|
|
in
|
|
{
|
|
inherit packages;
|
|
devShell = pkgs.mkShell {
|
|
inherit packages;
|
|
name = "python-dev-shell";
|
|
shellHook = ''
|
|
echo "🐍 Python dev environment"
|
|
which python
|
|
'';
|
|
description = "Python development shell";
|
|
};
|
|
}
|