Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package/filetype: add python-filetype package for system-server #232

Merged
merged 2 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions configs/ot2_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ BR2_PACKAGE_PYTHON_PANDAS=y
BR2_PACKAGE_PYTHON_PIP=y
BR2_PACKAGE_PYTHON_PYRSISTENT=y
BR2_PACKAGE_PYTHON_SYSTEMD=y
BR2_PACKAGE_PYTHON_FILETYPE=y
BR2_PACKAGE_ALSA_LIB=y
BR2_PACKAGE_ALSA_UTILS=y
BR2_PACKAGE_ALSA_UTILS_ALSACTL=y
Expand Down
6 changes: 6 additions & 0 deletions package/python-filetype/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
config BR2_PACKAGE_PYTHON_FILETYPE
bool "python-filetype"
help
Small and dependency free Python package to infer file type.

https://github.com/h2non/filetype.py
5 changes: 5 additions & 0 deletions package/python-filetype/python-filetype.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# md5, sha256 from https://pypi.org/project/filetype/
md5 915c437718ad93c2cd347eb5aa465af1 filetype-1.2.0.tar.gz
sha256 66b56cd6474bf41d8c54660347d37afcc3f7d1970648de365c102ef77548aadb filetype-1.2.0.tar.gz
# Locally computed sha256 checksums
sha256 8e44e2aa35b371bdcc856bcf0d2442a410dd55fde66b0dfc2fcdf076d97946ac LICENSE
14 changes: 14 additions & 0 deletions package/python-filetype/python-filetype.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
################################################################################
#
# python-filetype
#
################################################################################

PYTHON_FILETYPE_VERSION = 1.2.0
PYTHON_FILETYPE_SOURCE = filetype-$(PYTHON_FILETYPE_VERSION).tar.gz
PYTHON_FILETYPE_SITE = https://files.pythonhosted.org/packages/bb/29/745f7d30d47fe0f251d3ad3dc2978a23141917661998763bebb6da007eb1
PYTHON_FILETYPE_SETUP_TYPE = pep517
PYTHON_FILETYPE_LICENSE = Public Domain
PYTHON_FILETYPE_LICENSE_FILES = LICENSE

$(eval $(python-package))
Loading