Add flask to build deps and add some dev deps to shell
This commit is contained in:
parent
c86aaca2b6
commit
8ed3b85cad
@ -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;
|
||||
}
|
||||
|
14
shell.nix
14
shell.nix
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user