{ description = "Python DevShell — ОДИН Python!"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; devshell.url = "github:numtide/devshell"; devshell.inputs.nixpkgs.follows = "nixpkgs"; }; outputs = { nixpkgs, devshell, flake-utils, ... }: flake-utils.lib.eachDefaultSystem ( system: let pkgs = nixpkgs.legacyPackages.${system}; # python python311 = pkgs.python311; in { devShells.default = devshell.legacyPackages.${system}.mkShell { packages = [ python311 python311.pkgs.black python311.pkgs.isort python311.pkgs.mypy python311.pkgs.ruff python311.pkgs.uv ]; commands = [ { name = "check"; help = "Check python code"; command = "ruff check"; category = "python-tools"; } ]; devshell.startup.setup.text = '' echo "🚀 Python dev shell started!" ''; }; } ); }