Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879{ lib, buildPythonPackage, fetchFromGitHub, pdm-backend, rich-toolkit, typer, uvicorn,
# checks pytestCheckHook, rich,}:
let self = buildPythonPackage rec { pname = "fastapi-cli"; version = "0.0.32"; pyproject = true;
src = fetchFromGitHub { owner = "fastapi"; repo = "fastapi-cli"; tag = version; hash = "sha256-SHhCjpah0VWpPPEu2mjVx0lCjuZM00KQFgEpiRtOH2E="; };
build-system = [ pdm-backend ];
dependencies = [ rich-toolkit typer uvicorn ] ++ uvicorn.optional-dependencies.standard;
optional-dependencies = { standard = [ uvicorn # FIXME package fastapi-cloud-cli ] ++ uvicorn.optional-dependencies.standard; standard-no-fastapi-cloud-cli = [ uvicorn ] ++ uvicorn.optional-dependencies.standard; };
doCheck = false;
passthru.tests.pytest = self.overridePythonAttrs { doCheck = true; };
nativeCheckInputs = [ pytestCheckHook rich ] ++ optional-dependencies.standard;
# coverage disabledTests = [ "test_script" ];
pythonImportsCheck = [ "fastapi_cli" ];
meta = { description = "Run and manage FastAPI apps from the command line with FastAPI CLI"; homepage = "https://github.com/fastapi/fastapi-cli"; changelog = "https://github.com/fastapi/fastapi-cli/releases/tag/${src.tag}"; mainProgram = "fastapi"; license = lib.licenses.mit; maintainers = [ ]; # This package provides a `fastapi`-executable that is in conflict with the one from # python3Packages.fastapi. Because this package is primarily used for the purpose of # implementing the CLI for python3Packages.fastapi, we reduce the executable's priority priority = 10; }; };inself