Config changes
This commit is contained in:
37
data/devenv/templates/python39/flake.nix
Normal file
37
data/devenv/templates/python39/flake.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
description = "Development flake for this python project";
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem (system: let
|
||||
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
|
||||
python = pkgs.python39;
|
||||
pythonPackages = pkgs.python39Packages;
|
||||
|
||||
projectDependencies = with pythonPackages; [
|
||||
];
|
||||
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
nativeBuildInputs = [ pkgs.bashInteractive ];
|
||||
buildInputs = with pkgs; [
|
||||
# Core python dependencies
|
||||
python
|
||||
pythonPackages.pip
|
||||
pythonPackages.virtualenv
|
||||
# IDE tools
|
||||
pythonPackages.isort
|
||||
nodePackages.pyright
|
||||
# Development tools
|
||||
black
|
||||
pythonPackages.ipython
|
||||
pythonPackages.pytest
|
||||
pythonPackages.setuptools
|
||||
] ++ projectDependencies;
|
||||
|
||||
};
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user