diff --git a/DEVELOPERS b/DEVELOPERS index 4b04f90ccb..a52a8cfa38 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1487,7 +1487,10 @@ F: support/testing/tests/package/test_zfs.py N: José Pekkarinen F: package/alfred/ F: package/bmx7/ +F: package/python-aexpect/ F: package/softhsm2/ +F: support/testing/tests/package/sample_python_aexpect.py +F: support/testing/tests/package/test_python_aexpect.py N: Joseph Kogut F: package/at-spi2-atk/ diff --git a/package/Config.in b/package/Config.in index 9f4ab72a80..cb15574746 100644 --- a/package/Config.in +++ b/package/Config.in @@ -891,6 +891,7 @@ endif if BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3 menu "External python modules" source "package/python-aenum/Config.in" + source "package/python-aexpect/Config.in" source "package/python-aioblescan/Config.in" source "package/python-aiocoap/Config.in" source "package/python-aioconsole/Config.in" diff --git a/package/python-aexpect/Config.in b/package/python-aexpect/Config.in new file mode 100644 index 0000000000..eddba8e0b7 --- /dev/null +++ b/package/python-aexpect/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_PYTHON_AEXPECT + bool "python-aexpect" + depends on BR2_PACKAGE_PYTHON3 + select BR2_PACKAGE_PYTHON_SIX # runtime + help + Aexpect. + + http://avocado-framework.github.io/ diff --git a/package/python-aexpect/python-aexpect.hash b/package/python-aexpect/python-aexpect.hash new file mode 100644 index 0000000000..efe4f55fb8 --- /dev/null +++ b/package/python-aexpect/python-aexpect.hash @@ -0,0 +1,5 @@ +# md5, sha256 from https://pypi.org/pypi/aexpect/json +md5 d37473ff0024c15938bfe86a543537e6 aexpect-1.6.4.tar.gz +sha256 3998aa84ae54963fd59488f0caa533f6edbb31bc6cb842da09b041cbad56ad88 aexpect-1.6.4.tar.gz +# Locally computed sha256 checksums +sha256 7be26abf35e531a226dc742d2379d42d372cb61f027a6e26477c0e2f1a03bfcb LICENSE diff --git a/package/python-aexpect/python-aexpect.mk b/package/python-aexpect/python-aexpect.mk new file mode 100644 index 0000000000..8b5e165135 --- /dev/null +++ b/package/python-aexpect/python-aexpect.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# python-aexpect +# +################################################################################ + +PYTHON_AEXPECT_VERSION = 1.6.4 +PYTHON_AEXPECT_SOURCE = aexpect-$(PYTHON_AEXPECT_VERSION).tar.gz +PYTHON_AEXPECT_SITE = https://files.pythonhosted.org/packages/3b/22/f87ffa70348dde4597d9314995be89c8d4c7728260033b972a8d691e3f7d +PYTHON_AEXPECT_SETUP_TYPE = setuptools +PYTHON_AEXPECT_LICENSE = GPL-2.0+ +PYTHON_AEXPECT_LICENSE_FILES = LICENSE + +$(eval $(python-package)) diff --git a/support/testing/tests/package/sample_python_aexpect.py b/support/testing/tests/package/sample_python_aexpect.py new file mode 100644 index 0000000000..a31a17bd1d --- /dev/null +++ b/support/testing/tests/package/sample_python_aexpect.py @@ -0,0 +1 @@ +import aexpect diff --git a/support/testing/tests/package/test_python_aexpect.py b/support/testing/tests/package/test_python_aexpect.py new file mode 100644 index 0000000000..5b018399b3 --- /dev/null +++ b/support/testing/tests/package/test_python_aexpect.py @@ -0,0 +1,12 @@ +from tests.package.test_python import TestPythonPackageBase + + +class TestPythonPy3Aexpect(TestPythonPackageBase): + __test__ = True + config = TestPythonPackageBase.config + \ + """ + BR2_PACKAGE_PYTHON3=y + BR2_PACKAGE_PYTHON_AEXPECT=y + """ + sample_scripts = ["tests/package/sample_python_aexpect.py"] + timeout = 30