Merge pull request #329742 from bcdarwin/fastapi-cli-refactor

fastapi-cli: refactor to use python3Packages.fastapi-cli

authored by Pol Dellaiera and committed by GitHub 054a3e43 3758fa1f

+3 -41
+3 -41
pkgs/by-name/fa/fastapi-cli/package.nix
··· 1 - { 2 - lib, 3 - python3, 4 - fetchFromGitHub, 5 - }: 6 - 7 - python3.pkgs.buildPythonApplication rec { 8 - pname = "fastapi-cli"; 9 - version = "0.0.4"; 10 - pyproject = true; 11 - 12 - src = fetchFromGitHub { 13 - owner = "tiangolo"; 14 - repo = "fastapi-cli"; 15 - rev = "refs/tags/${version}"; 16 - hash = "sha256-eWvZn7ZeLnQZAvGOzY77o6oO5y+QV2cx+peBov9YpJE="; 17 - }; 18 - 19 - build-system = [ python3.pkgs.pdm-backend ]; 20 - 21 - dependencies = with python3.pkgs; [ 22 - rich 23 - typer 24 - ]; 25 - 26 - optional-dependencies = with python3.pkgs; { 27 - standard = [ 28 - fastapi 29 - uvicorn 30 - ]; 31 - }; 32 - 33 - pythonImportsCheck = [ "fastapi_cli" ]; 1 + { python3 }: 34 2 35 - meta = { 36 - description = "Run and manage FastAPI apps from the command line with FastAPI CLI"; 37 - homepage = "https://github.com/tiangolo/fastapi-cli"; 38 - license = lib.licenses.mit; 39 - maintainers = with lib.maintainers; [ drupol ]; 40 - mainProgram = "fastapi-cli"; 41 - }; 42 - } 3 + with python3.pkgs; 4 + toPythonApplication fastapi-cli