split home-manager into their own submodules
This commit is contained in:
31
modules/dev/python/common.nix
Normal file
31
modules/dev/python/common.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{ 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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user