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
pypkgs = pkgs.python38Packages;
@ -6,5 +8,5 @@ in pypkgs.buildPythonPackage {
name = "intake";
src = builtins.path { path = ./.; name = "intake"; };
format = "pyproject";
propagatedBuildInputs = with pypkgs; [ setuptools ];
propagatedBuildInputs = with pypkgs; [ flask setuptools ] ++ extraDeps;
}

View File

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