eduproj/sm2/default.nix
2021-08-28 03:11:51 -05:00

20 lines
473 B
Nix

{ buildPythonPackage, nix-gitignore, python, mypy }:
let
pythonBuildInputs = [ ];
pythonWithBuildInputs = python.withPackages (_: pythonBuildInputs);
in
buildPythonPackage {
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
'';
}