diff options
| author | Jeffery To <jeffery.to@gmail.com> | 2023-12-04 14:05:55 +0800 |
|---|---|---|
| committer | Tianling Shen <cnsztl@gmail.com> | 2023-12-07 15:07:05 +0800 |
| commit | 5e1b12e55e10bd2cef54d67d4bcb8ae555e7a409 (patch) | |
| tree | 44f3571a9f787b4aae8a9dc64cc889678c559374 /lang/python/python-platformdirs/Makefile | |
| parent | a2c057312f65ea3afdd5cd22463fde6da3812d8c (diff) | |
python-platformdirs: Add new package
This also includes a test.sh script for the packages feed CI.
From the README:
When writing desktop application, finding the right location to store
user data and configuration varies per platform. Even for
single-platform apps, there may by plenty of nuances in figuring out the
right location.
This kind of thing is what the platformdirs package is for.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/python-platformdirs/Makefile')
| -rw-r--r-- | lang/python/python-platformdirs/Makefile | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/lang/python/python-platformdirs/Makefile b/lang/python/python-platformdirs/Makefile new file mode 100644 index 000000000..620377ebe --- /dev/null +++ b/lang/python/python-platformdirs/Makefile @@ -0,0 +1,47 @@ +# +# Copyright (C) 2023 Jeffery To +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=python-platformdirs +PKG_VERSION:=4.0.0 +PKG_RELEASE:=1 + +PYPI_NAME:=platformdirs +PKG_HASH:=cb633b2bcf10c51af60beb0ab06d2f1d69064b43abf4c185ca6b28865f3f9731 + +PKG_LICENSE:=MIT +PKG_LICENSE_FILES:=LICENSE +PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com> + +PKG_BUILD_DEPENDS:=python-hatchling/host python-hatch-vcs/host + +include ../pypi.mk +include $(INCLUDE_DIR)/package.mk +include ../python3-package.mk + +define Package/python3-platformdirs + SECTION:=lang + CATEGORY:=Languages + SUBMENU:=Python + TITLE:=Determine appropriate platform-specific dirs + URL:=https://github.com/platformdirs/platformdirs + DEPENDS:=+python3-light +python3-urllib +endef + +define Package/python3-platformdirs/description +When writing desktop application, finding the right location to store +user data and configuration varies per platform. Even for +single-platform apps, there may by plenty of nuances in figuring out the +right location. + +This kind of thing is what the platformdirs package is for. +endef + +$(eval $(call Py3Package,python3-platformdirs)) +$(eval $(call BuildPackage,python3-platformdirs)) +$(eval $(call BuildPackage,python3-platformdirs-src)) |
