Files
samfelag/data/devenv/templates/python/flake.nix
2022-11-25 20:16:46 +01:00

28 lines
762 B
Nix

{
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};
projectDependencies = with pkgs; [
];
in {
devShells.default = pkgs.mkShell {
nativeBuildInputs = [ pkgs.bashInteractive ];
buildInputs = with pkgs; [
# Core python dependencies
python39
python39Packages.pip
python39Packages.virtualenv
# Development tools
python39Packages.ipython
] ++ projectDependencies;
};
});
}