Skip to content

Commit

Permalink
package/filetype: add python-filetype package for system-server (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
vegano1 authored Apr 19, 2024
1 parent 4d580d8 commit c87de1d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
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))

0 comments on commit c87de1d

Please sign in to comment.