14 let self = buildPythonPackage rec {
15 pname = "fastapi-cli";
19 src = fetchFromGitHub {
22 rev = "refs/tags/${version}";
23 hash = "sha256-hUS9zkDJJB51X+e31RvyxcGAP8j4oulAPFAvEMPiIn8=";
26 build-system = [ pdm-backend ];
31 ] ++ uvicorn.optional-dependencies.standard;
33 optional-dependencies = {
36 ] ++ uvicorn.optional-dependencies.standard;
41 passthru.tests.pytest = self.overridePythonAttrs { doCheck = true; };
46 ] ++ optional-dependencies.standard;
49 disabledTests = [ "test_script" ];
51 pythonImportsCheck = [ "fastapi_cli" ];
54 description = "Run and manage FastAPI apps from the command line with FastAPI CLI";
55 homepage = "https://github.com/tiangolo/fastapi-cli";
56 changelog = "https://github.com/tiangolo/fastapi-cli/releases/tag/${version}";
57 mainProgram = "fastapi";
58 license = licenses.mit;
60 # This package provides a `fastapi`-executable that is in conflict with the one from
61 # python3Packages.fastapi. Because this package is primarily used for the purpose of
62 # implementing the CLI for python3Packages.fastapi, we reduce the executable's priority