19 lines
473 B
Nix
19 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
|
|
'';
|
|
}
|