eduproj/sm2/default.nix
2021-08-28 00:53:25 -05:00

20 lines
481 B
Nix

{ buildPythonApplication, nix-gitignore, python, mypy }:
let
pythonBuildInputs = [ ];
pythonWithBuildInputs = python.withPackages (_: pythonBuildInputs);
in
buildPythonApplication {
name = "sm2";
src = nix-gitignore.gitignoreSourcePure [ ../.gitignore ] ./.;
doCheck = true;
checkInputs = [ mypy ];
checkPhase = ''
${mypy}/bin/mypy --no-color-output \
--package sm2 \
--python-executable ${pythonWithBuildInputs}/bin/python \
--strict
'';
}