add template for python requirements.txt projects

This commit is contained in:
Noah Masur
2022-06-26 22:10:57 -04:00
parent e4b15ea100
commit 720ca5d94c
5 changed files with 71 additions and 0 deletions

View File

@ -0,0 +1,20 @@
{
description = "Python pip flake";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
pythonEnv = pkgs.python310.withPackages (pypi:
with pypi;
[
# Add requirements here
requests
]);
in {
devShells.default = pkgs.mkShell { buildInputs = [ pythonEnv ]; };
});
}