{ pkgs ? import { }, lint ? false }: pkgs.python3Packages.callPackage ({ lib, buildPythonPackage, autopep8, mypy, pylint, }: buildPythonPackage rec { pname = "nix-pin-deps"; version = "1.0.0"; src = lib.cleanSource ./.; checkInputs = [ mypy ] ++ lib.optionals lint [ autopep8 pylint ]; doCheck = true; checkPhase = '' ./test.sh ${lib.optionalString lint "lint"} ''; }) { }