.dotfiles/templates/py_flake.nix
2024-07-20 00:21:55 +02:00

29 lines
707 B
Nix

{
description = "Python Flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.${system}.default = pkgs.mkShell {
packages = [
(pkgs.python3.withPackages (python-pkgs: [
python-pkgs.numpy
python-pkgs.pandas
python-pkgs.scipy
python-pkgs.matplotlib
python-pkgs.requests
python-pkgs.debugpy
python-pkgs.flake8
python-pkgs.gnureadline
python-pkgs.python-lsp-server
]))
];
};
};
}