{ lib , stdenv , buildPythonPackage , fetchpatch , fetchPypi , flit-core , click , pytestCheckHook , shellingham , pytest-xdist , pytest-sugar , coverage , pythonOlder }: buildPythonPackage rec { pname = "typer"; version = "0.4.1"; format = "pyproject"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; sha256 = "sha256-Vkau8Nk2ssdhoQOT8DhO5rXH/guz5c1xCxcTTKHZnP8="; }; nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ click ]; checkInputs = [ pytestCheckHook pytest-xdist pytest-sugar shellingham coverage # execs coverage in tests ]; preCheck = '' export HOME=$(mktemp -d); ''; disabledTests = lib.optionals stdenv.isDarwin [ # likely related to https://github.com/sarugaku/shellingham/issues/35 "test_show_completion" "test_install_completion" ]; pythonImportsCheck = [ "typer" ]; meta = with lib; { description = "Python library for building CLI applications"; homepage = "https://typer.tiangolo.com/"; license = licenses.mit; maintainers = with maintainers; [ winpat ]; }; }