python-sniffio: add package for 1.3.0
authorJulien Malik <[email protected]>
Sat, 26 Nov 2022 14:24:04 +0000 (15:24 +0100)
committerJulien Malik <[email protected]>
Sat, 26 Nov 2022 14:24:04 +0000 (15:24 +0100)
Signed-off-by: Julien Malik <[email protected]>
lang/python/python-sniffio/Makefile [new file with mode: 0644]

diff --git a/lang/python/python-sniffio/Makefile b/lang/python/python-sniffio/Makefile
new file mode 100644 (file)
index 0000000..eef65ad
--- /dev/null
@@ -0,0 +1,40 @@
+#
+# Copyright (C) 2022 Julien Malik <[email protected]>
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=python-sniffio
+PKG_VERSION:=1.3.0
+PKG_RELEASE:=1
+
+PYPI_NAME:=sniffio
+PKG_HASH:=e60305c5e5d314f5389259b7f22aaa33d8f7dee49763119234af3755c55b9101
+
+PKG_LICENSE:=Apache-2.0|MIT
+PKG_LICENSE_FILES:=LICENSE.APACHE2|LICENSE.MIT
+PKG_MAINTAINER:=Julien Malik <[email protected]>
+
+include ../pypi.mk
+include $(INCLUDE_DIR)/package.mk
+include ../python3-package.mk
+
+define Package/python3-sniffio
+  SECTION:=lang
+  CATEGORY:=Languages
+  SUBMENU:=Python
+  TITLE:=Sniff out which async library your code is running under
+  URL:=https://sniffio.readthedocs.io
+  DEPENDS:=+python3-light
+endef
+
+define Package/python3-sniffio/description
+  This is a tiny package whose only purpose is to let you detect which async library your code is running under.
+endef
+
+$(eval $(call Py3Package,python3-sniffio))
+$(eval $(call BuildPackage,python3-sniffio))
+$(eval $(call BuildPackage,python3-sniffio-src))