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
|
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;
|
||||||
}
|
}
|
||||||
|
|
14
shell.nix
14
shell.nix
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue