summaryrefslogtreecommitdiffstats
path: root/lang/python/python-starlette/Makefile
blob: d7f60ac1a436698b033b5cf50ae2f20553bbddb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# SPDX-License-Identifier: GPL-2.0-only

include $(TOPDIR)/rules.mk

PKG_NAME:=python-starlette
PKG_VERSION:=1.10.0
PKG_RELEASE:=1

PYPI_NAME:=starlette
PKG_HASH:=b8399098d4c1e3522734f7235dc79b1fc967f96cf139c81e0fa30479e0685f9b

PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE.md

HOST_BUILD_DEPENDS:= \
	python-anyio/host \
	python-hatchling/host
PKG_BUILD_DEPENDS:=python-hatchling/host

include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include ../python3-package.mk
include ../python3-host-build.mk

define Package/python3-starlette
  SECTION:=lang
  CATEGORY:=Languages
  SUBMENU:=Python
  TITLE:=Starlette
  URL:=https://github.com/agronholm/starlette
  DEPENDS:= \
    +python3-asyncio \
    +python3-anyio \
    +python3-light \
    +python3-urllib \
    +python3-uuid
endef

define Package/python3-starlette/description
  Starlette is a lightweight ASGI framework/toolkit, which is ideal for
  building async web services in Python.
endef

$(eval $(call Py3Package,python3-starlette))
$(eval $(call BuildPackage,python3-starlette))
$(eval $(call BuildPackage,python3-starlette-src))
$(eval $(call HostBuild))