Files
nixpkgs/pkgs/development/python-modules/fastapi-cli/default.nix
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

61 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pdm-backend
, typer
, fastapi
, uvicorn
# checks
, pytestCheckHook
, rich
}:
let self = buildPythonPackage rec {
pname = "fastapi-cli";
version = "0.0.4";
pyproject = true;
src = fetchFromGitHub {
owner = "tiangolo";
repo = "fastapi-cli";
rev = version;
hash = "sha256-eWvZn7ZeLnQZAvGOzY77o6oO5y+QV2cx+peBov9YpJE=";
};
build-system = [ pdm-backend ];
dependencies = [ typer ];
optional-dependencies = {
standard = [
fastapi
uvicorn
];
};
doCheck = false;
passthru.tests.pytest = self.overridePythonAttrs { doCheck = true; };
nativeCheckInputs = [
pytestCheckHook
rich
] ++ optional-dependencies.standard;
# coverage
disabledTests = [ "test_script" ];
pythonImportsCheck = [ "fastapi_cli" ];
meta = with lib; {
description = "Run and manage FastAPI apps from the command line with FastAPI CLI";
homepage = "https://github.com/tiangolo/fastapi-cli";
changelog = "https://github.com/tiangolo/fastapi-cli/releases/tag/${version}";
mainProgram = "fastapi";
license = licenses.mit;
maintainers = [ ];
};
};
in self