Skip to content

Commit 41ace17

Browse files
committed
python-expandvars: add new package
Necessary to build python-frozenlist Signed-off-by: Jean Thomas <jean.thomas@wifirst.fr>
1 parent 01ac296 commit 41ace17

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#
2+
# This is free software, licensed under the GNU General Public License v2.
3+
# See /LICENSE for more information.
4+
#
5+
6+
include $(TOPDIR)/rules.mk
7+
8+
PKG_NAME:=python-expandvars
9+
PKG_VERSION:=1.1.2
10+
PKG_RELEASE:=1
11+
12+
PYPI_NAME:=expandvars
13+
PKG_HASH:=6c5822b7b756a99a356b915dd1267f52ab8a4efaa135963bd7f4bd5d368f71d7
14+
15+
PKG_LICENSE:=MIT
16+
PKG_LICENSE_FILES:=LICENSE
17+
PKG_MAINTAINER:=Jean Thomas <jean.thomas@wifirst.fr>
18+
19+
PKG_BUILD_DEPENDS:=python-setuptools/host python-hatchling/host
20+
21+
PKG_HOST_ONLY:=1
22+
HOST_BUILD_DEPENDS:= \
23+
python3/host \
24+
python-build/host
25+
26+
include ../pypi.mk
27+
include $(INCLUDE_DIR)/package.mk
28+
include $(INCLUDE_DIR)/host-build.mk
29+
include ../python3-package.mk
30+
include ../python3-host-build.mk
31+
32+
define Package/python3-expandvars
33+
SECTION:=lang
34+
CATEGORY:=Languages
35+
SUBMENU:=Python
36+
TITLE:=Expand system variables Unix style
37+
URL:=https://github.com/sayanarijit/expandvars/
38+
DEPENDS:= +python3-light
39+
BUILDONLY:=1
40+
endef
41+
42+
define Package/python3-expandvars/description
43+
This module is inspired by GNU bash's variable expansion features.
44+
It can be used as an alternative to Python's os.path.expandvars function.
45+
endef
46+
47+
$(eval $(call Py3Package,python3-expandvars))
48+
$(eval $(call BuildPackage,python3-expandvars))
49+
$(eval $(call BuildPackage,python3-expandvars-src))
50+
$(eval $(call HostBuild))

0 commit comments

Comments
 (0)