Add flask to build deps and add some dev deps to shell

This commit is contained in:
Tim Van Baak 2023-05-29 13:46:19 -07:00
parent c86aaca2b6
commit 8ed3b85cad
2 changed files with 13 additions and 7 deletions

View File

@ -1,4 +1,6 @@
{ pkgs ? import <nixpkgs> {} }: { pkgs ? import <nixpkgs> {},
extraDeps ? []
}:
let let
pypkgs = pkgs.python38Packages; pypkgs = pkgs.python38Packages;
@ -6,5 +8,5 @@ in pypkgs.buildPythonPackage {
name = "intake"; name = "intake";
src = builtins.path { path = ./.; name = "intake"; }; src = builtins.path { path = ./.; name = "intake"; };
format = "pyproject"; format = "pyproject";
propagatedBuildInputs = with pypkgs; [ setuptools ]; propagatedBuildInputs = with pypkgs; [ flask setuptools ] ++ extraDeps;
} }

View File

@ -1,8 +1,12 @@
{ pkgs ? import <nixpkgs> {} }: { pkgs ? import <nixpkgs> {} }:
let let
intake = import ./default.nix {}; extraDeps = [
in pkgs.mkShell { pkgs.nixos-shell
inputsFrom = [ intake ]; pkgs.python38Packages.black
buildInputs = [ pkgs.nixos-shell ]; pkgs.python38Packages.pytest
} ];
intake = import ./default.nix {
inherit pkgs extraDeps;
};
in intake