package/python-mypy: new package

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
This commit is contained in:
James Hilliard
2025-01-09 13:10:53 -07:00
committed by Arnout Vandecappelle
parent c6924b2331
commit 218a17dbc4
4 changed files with 39 additions and 0 deletions

View File

@@ -1247,6 +1247,7 @@ menu "External python modules"
source "package/python-mwclient/Config.in"
source "package/python-mwscrape/Config.in"
source "package/python-mwscrape2slob/Config.in"
source "package/python-mypy/Config.in"
source "package/python-mypy-extensions/Config.in"
source "package/python-nested-dict/Config.in"
source "package/python-netaddr/Config.in"

View File

@@ -0,0 +1,8 @@
config BR2_PACKAGE_PYTHON_MYPY
bool "python-mypy"
select BR2_PACKAGE_PYTHON_MYPY_EXTENSIONS # runtime
select BR2_PACKAGE_PYTHON_TYPING_EXTENSIONS # runtime
help
Optional static typing for Python.
https://www.mypy-lang.org/

View File

@@ -0,0 +1,5 @@
# md5, sha256 from https://pypi.org/pypi/mypy/json
md5 8297bf7865feffd704735f0fdb5a4150 mypy-1.14.1.tar.gz
sha256 7ec88144fe9b510e8475ec2f5f251992690fcf89ccb4500b214b4226abcd32d6 mypy-1.14.1.tar.gz
# Locally computed sha256 checksums
sha256 de341f6e031d021aab9eb27bdf713cc6fb844dee832ef3bcd4688bff5517220b LICENSE

View File

@@ -0,0 +1,25 @@
################################################################################
#
# python-mypy
#
################################################################################
PYTHON_MYPY_VERSION = 1.14.1
PYTHON_MYPY_SOURCE = mypy-$(PYTHON_MYPY_VERSION).tar.gz
PYTHON_MYPY_SITE = https://files.pythonhosted.org/packages/b9/eb/2c92d8ea1e684440f54fa49ac5d9a5f19967b7b472a281f419e69a8d228e
PYTHON_MYPY_SETUP_TYPE = setuptools
PYTHON_MYPY_LICENSE = Apache-2.0, Python-2.0.1
PYTHON_MYPY_LICENSE_FILES = LICENSE
PYTHON_MYPY_DEPENDENCIES = \
host-python-mypy-extensions \
host-python-types-psutil \
host-python-types-setuptools \
host-python-typing-extensions
HOST_PYTHON_MYPY_DEPENDENCIES = \
host-python-mypy-extensions \
host-python-types-psutil \
host-python-types-setuptools \
host-python-typing-extensions
$(eval $(python-package))
$(eval $(host-python-package))