Files
openRuyi/SPECS/python-fastapi/python-fastapi.spec
2026-04-18 00:06:27 +08:00

53 lines
1.7 KiB
RPMSpec

# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS)
# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors
# SPDX-FileContributor: Kimmy <yucheng.or@isrc.iscas.ac.cn>
#
# SPDX-License-Identifier: MulanPSL-2.0
%global srcname fastapi
Name: python-%{srcname}
Version: 0.135.3
Release: %autorelease
Summary: High-performance async web framework for building APIs
License: MIT
URL: https://github.com/fastapi/fastapi
VCS: git:https://github.com/fastapi/fastapi.git
#!RemoteAsset: sha256:bd6d7caf1a2bdd8d676843cdcd2287729572a1ef524fc4d65c17ae002a1be654
Source: https://files.pythonhosted.org/packages/source/f/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
BuildSystem: pyproject
BuildOption(install): -l %{srcname}
BuildRequires: pyproject-rpm-macros
BuildRequires: pkgconfig(python3)
BuildRequires: python3dist(pdm-backend)
BuildRequires: python3dist(jinja2)
BuildRequires: python3dist(httpx)
Requires: python3dist(starlette)
Requires: python3dist(pydantic)
Requires: python3dist(typing-extensions)
Requires: python3dist(typing-inspection)
Requires: python3dist(annotated-doc)
Provides: python3-%{srcname} = %{version}-%{release}
%python_provide python3-%{srcname}
%description
FastAPI is a modern, high-performance web framework for building APIs with
Python based on standard type hints. It is built on top of Starlette for web
routing and Pydantic for data validation.
%generate_buildrequires
%pyproject_buildrequires
%files -f %{pyproject_files}
%license LICENSE
%doc README.md
%{_bindir}/fastapi
%changelog
%autochangelog