termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.26k stars 3.06k forks source link

[Bug]: Cant install homeassistant #9994

Closed Megapusher closed 2 years ago

Megapusher commented 2 years ago

Problem description

Installing homeassistant with error cryptography 35.0.0:

Version homeassistant: 2022.4.2

~ $ pip install homeassistant

Collecting homeassistant
  Using cached homeassistant-2022.4.2-py3-none-any.whl (17.3 MB)
Collecting attrs==21.2.0
  Using cached attrs-21.2.0-py2.py3-none-any.whl (53 kB)
Collecting yarl==1.7.2
  Using cached yarl-1.7.2-cp310-cp310-linux_armv8l.whl
Collecting jinja2==3.1.0
  Using cached Jinja2-3.1.0-py3-none-any.whl (132 kB)
Collecting ciso8601==2.2.0
  Using cached ciso8601-2.2.0-cp310-cp310-linux_armv8l.whl
Requirement already satisfied: pip<22.1,>=21.0 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from homeassistant) (22.0.4)
Collecting voluptuous-serialize==2.5.0
  Using cached voluptuous_serialize-2.5.0-py3-none-any.whl (6.8 kB)
Collecting astral==2.2
  Using cached astral-2.2-py2.py3-none-any.whl (30 kB)
Collecting cryptography==35.0.0
  Using cached cryptography-35.0.0.tar.gz (559 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting awesomeversion==22.2.0
  Using cached awesomeversion-22.2.0-py3-none-any.whl (12 kB)
Collecting ifaddr==0.1.7
  Using cached ifaddr-0.1.7-py2.py3-none-any.whl (10 kB)
Collecting PyJWT==2.3.0
  Using cached PyJWT-2.3.0-py3-none-any.whl (16 kB)
Collecting aiohttp==3.8.1
  Using cached aiohttp-3.8.1-cp310-cp310-linux_armv8l.whl
Collecting certifi>=2021.5.30
  Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting voluptuous==0.12.2
  Using cached voluptuous-0.12.2.tar.gz (48 kB)
  Preparing metadata (setup.py) ... done
Collecting requests==2.27.1
  Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB)
Collecting typing-extensions<5.0,>=3.10.0.2
  Using cached typing_extensions-4.1.1-py3-none-any.whl (26 kB)
Collecting python-slugify==4.0.1
  Using cached python-slugify-4.0.1.tar.gz (11 kB)
  Preparing metadata (setup.py) ... done
Collecting bcrypt==3.1.7
  Using cached bcrypt-3.1.7-cp310-cp310-linux_armv8l.whl
Collecting atomicwrites==1.4.0
  Using cached atomicwrites-1.4.0-py2.py3-none-any.whl (6.8 kB)
Collecting pyyaml==6.0
  Using cached PyYAML-6.0-cp310-cp310-linux_armv8l.whl
Collecting httpx==0.22.0
  Using cached httpx-0.22.0-py3-none-any.whl (84 kB)
Collecting async-timeout==4.0.2
  Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting frozenlist>=1.1.1
  Using cached frozenlist-1.3.0-cp310-cp310-linux_armv8l.whl
Collecting aiosignal>=1.1.2
  Using cached aiosignal-1.2.0-py3-none-any.whl (8.2 kB)
Collecting multidict<7.0,>=4.5
  Using cached multidict-6.0.2-cp310-cp310-linux_armv8l.whl
Collecting charset-normalizer<3.0,>=2.0
  Using cached charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting pytz
  Using cached pytz-2022.1-py2.py3-none-any.whl (503 kB)
Collecting cffi>=1.1
  Using cached cffi-1.15.0-cp310-cp310-linux_armv8l.whl
Collecting six>=1.4.1
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting sniffio
  Using cached sniffio-1.2.0-py3-none-any.whl (10 kB)
Collecting rfc3986[idna2008]<2,>=1.3
  Using cached rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)
Collecting httpcore<0.15.0,>=0.14.5
  Using cached httpcore-0.14.7-py3-none-any.whl (68 kB)
Collecting MarkupSafe>=2.0
  Using cached MarkupSafe-2.1.1.tar.gz (18 kB)
  Preparing metadata (setup.py) ... done
Collecting text-unidecode>=1.3
  Using cached text_unidecode-1.3-py2.py3-none-any.whl (78 kB)
Collecting urllib3<1.27,>=1.21.1
  Using cached urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
Collecting idna<4,>=2.5
  Using cached idna-3.3-py3-none-any.whl (61 kB)
Collecting pycparser
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Collecting anyio==3.*
  Using cached anyio-3.5.0-py3-none-any.whl (79 kB)
Collecting h11<0.13,>=0.11
  Using cached h11-0.12.0-py3-none-any.whl (54 kB)
Building wheels for collected packages: cryptography, python-slugify, voluptuous, MarkupSafe
  Building wheel for cryptography (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for cryptography (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [314 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-armv8l-cpython-310
      creating build/lib.linux-armv8l-cpython-310/cryptography
      copying src/cryptography/__about__.py -> build/lib.linux-armv8l-cpython-310/cryptography
      copying src/cryptography/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography
      copying src/cryptography/exceptions.py -> build/lib.linux-armv8l-cpython-310/cryptography
      copying src/cryptography/fernet.py -> build/lib.linux-armv8l-cpython-310/cryptography
      copying src/cryptography/utils.py -> build/lib.linux-armv8l-cpython-310/cryptography
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat
      copying src/cryptography/hazmat/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat
      copying src/cryptography/hazmat/_oid.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat
      creating build/lib.linux-armv8l-cpython-310/cryptography/x509
      copying src/cryptography/x509/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/x509
      copying src/cryptography/x509/base.py -> build/lib.linux-armv8l-cpython-310/cryptography/x509
      copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-armv8l-cpython-310/cryptography/x509
      copying src/cryptography/x509/extensions.py -> build/lib.linux-armv8l-cpython-310/cryptography/x509
      copying src/cryptography/x509/general_name.py -> build/lib.linux-armv8l-cpython-310/cryptography/x509
      copying src/cryptography/x509/name.py -> build/lib.linux-armv8l-cpython-310/cryptography/x509
      copying src/cryptography/x509/ocsp.py -> build/lib.linux-armv8l-cpython-310/cryptography/x509
      copying src/cryptography/x509/oid.py -> build/lib.linux-armv8l-cpython-310/cryptography/x509
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends
      copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends
      copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings
      copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/_asymmetric.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/_cipheralgorithm.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/_serialization.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings/openssl
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/types.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/ciphers
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/kdf
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/serialization
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/twofactor
      running egg_info
      writing src/cryptography.egg-info/PKG-INFO
      writing dependency_links to src/cryptography.egg-info/dependency_links.txt
      writing requirements to src/cryptography.egg-info/requires.txt
      writing top-level names to src/cryptography.egg-info/top_level.txt
      reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      no previously-included directories found matching 'docs/_build'
      warning: no previously-included files found matching 'vectors'
      warning: no previously-included files matching '*' found under directory 'vectors'
      warning: no previously-included files matching '*' found under directory '.github'
      warning: no previously-included files found matching 'release.py'
      warning: no previously-included files found matching '.coveragerc'
      warning: no previously-included files found matching 'codecov.yml'
      warning: no previously-included files found matching '.readthedocs.yml'
      warning: no previously-included files found matching 'dev-requirements.txt'
      warning: no previously-included files found matching 'tox.ini'
      warning: no previously-included files found matching 'mypy.ini'
      warning: no previously-included files matching '*' found under directory '.zuul.d'
      warning: no previously-included files matching '*' found under directory '.zuul.playbooks'
      adding license file 'LICENSE'
      adding license file 'LICENSE.APACHE'
      adding license file 'LICENSE.BSD'
      adding license file 'LICENSE.PSF'
      writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
      copying src/cryptography/py.typed -> build/lib.linux-armv8l-cpython-310/cryptography
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/__init__.pyi -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/asn1.pyi -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/ocsp.pyi -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/x509.pyi -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings/_rust
      running build_ext
      generating cffi module 'build/temp.linux-armv8l-cpython-310/_openssl.c'
      creating build/temp.linux-armv8l-cpython-310
      running build_rust
          Updating crates.io index
       Downloading crates ...
        Downloaded num-integer v0.1.44
        Downloaded parking_lot_core v0.8.5
        Downloaded parking_lot v0.11.2
        Downloaded ouroboros_macro v0.11.1
        Downloaded ouroboros v0.11.1
        Downloaded paste v0.1.18
        Downloaded proc-macro-hack v0.5.19
        Downloaded unicode-xid v0.2.2
        Downloaded redox_syscall v0.2.10
        Downloaded smallvec v1.7.0
        Downloaded pyo3-macros v0.14.5
        Downloaded unindent v0.1.7
        Downloaded version_check v0.9.3
        Downloaded proc-macro2 v1.0.29
        Downloaded proc-macro-error-attr v1.0.4
        Downloaded pem v0.8.3
        Downloaded pyo3-build-config v0.14.5
        Downloaded scopeguard v1.1.0
        Downloaded quote v1.0.9
        Downloaded proc-macro-error v1.0.4
        Downloaded once_cell v1.8.0
        Downloaded aliasable v0.1.3
        Downloaded regex v1.5.4
        Downloaded autocfg v1.0.1
        Downloaded cfg-if v1.0.0
        Downloaded base64 v0.13.0
        Downloaded chrono v0.4.19
        Downloaded syn v1.0.77
        Downloaded pyo3-macros-backend v0.14.5
        Downloaded asn1_derive v0.6.4
        Downloaded stable_deref_trait v1.2.0
        Downloaded regex-syntax v0.6.25
        Downloaded instant v0.1.11
        Downloaded bitflags v1.3.2
        Downloaded pyo3 v0.14.5
        Downloaded indoc-impl v0.3.6
        Downloaded num-traits v0.2.14
        Downloaded lock_api v0.4.5
        Downloaded lazy_static v1.4.0
        Downloaded indoc v0.3.6
        Downloaded paste-impl v0.1.18
        Downloaded asn1 v0.6.4
        Downloaded Inflector v0.11.4
        Downloaded libc v0.2.103
        Downloaded winapi v0.3.9
        Downloaded winapi-i686-pc-windows-gnu v0.4.0
        Downloaded winapi-x86_64-pc-windows-gnu v0.4.0
      cargo rustc --lib --manifest-path src/rust/Cargo.toml --target armv7-linux-androideabi --release -v --features pyo3/extension-module pyo3/abi3-py36 -- --crate-type cdylib -C linker=arm-linux-androideabi-clang
         Compiling proc-macro2 v1.0.29
         Compiling unicode-xid v0.2.2
         Compiling syn v1.0.77
         Compiling autocfg v1.0.1
         Compiling version_check v0.9.3
         Compiling proc-macro-hack v0.5.19
         Compiling pyo3-build-config v0.14.5
         Compiling once_cell v1.8.0
           Running `rustc --crate-name build_script_build --edition=2018 /data/data/com.termux/files/home/.cargo/registry/src/github.com-1285ae84e5963aae/proc-macro2-1.0.29/build.rs --error-format=json --json=diagnostic-rendered-ansi,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off -C overflow-checks=on --cfg 'feature="default"' --cfg 'feature="proc-macro"' -C metadata=f54087319ac54e5f -C extra-filename=-f54087319ac54e5f --out-dir /data/data/com.termux/files/usr/tmp/pip-install-s2kk80in/cryptography_7e977a72b93f4a14ad61ec306f19071f/src/rust/target/release/build/proc-macro2-f54087319ac54e5f -L dependency=/data/data/com.termux/files/usr/tmp/pip-install-s2kk80in/cryptography_7e977a72b93f4a14ad61ec306f19071f/src/rust/target/release/deps --cap-lints allow`

...

         Compiling pem v0.8.3
           Running `rustc --crate-name pem --edition=2018 /data/data/com.termux/files/home/.cargo/registry/src/github.com-1285ae84e5963aae/pem-0.8.3/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C linker-plugin-lto -C overflow-checks=on -C metadata=952bb1656bc3b0c4 -C extra-filename=-952bb1656bc3b0c4 --out-dir /data/data/com.termux/files/usr/tmp/pip-install-s2kk80in/cryptography_7e977a72b93f4a14ad61ec306f19071f/src/rust/target/armv7-linux-androideabi/release/deps --target armv7-linux-androideabi -L dependency=/data/data/com.termux/files/usr/tmp/pip-install-s2kk80in/cryptography_7e977a72b93f4a14ad61ec306f19071f/src/rust/target/armv7-linux-androideabi/release/deps -L dependency=/data/data/com.termux/files/usr/tmp/pip-install-s2kk80in/cryptography_7e977a72b93f4a14ad61ec306f19071f/src/rust/target/release/deps --extern base64=/data/data/com.termux/files/usr/tmp/pip-install-s2kk80in/cryptography_7e977a72b93f4a14ad61ec306f19071f/src/rust/target/armv7-linux-androideabi/release/deps/libbase64-ef50c9548b6894a1.rmeta --extern once_cell=/data/data/com.termux/files/usr/tmp/pip-install-s2kk80in/cryptography_7e977a72b93f4a14ad61ec306f19071f/src/rust/target/armv7-linux-androideabi/release/deps/libonce_cell-7c373dc68f9d6237.rmeta --extern regex=/data/data/com.termux/files/usr/tmp/pip-install-s2kk80in/cryptography_7e977a72b93f4a14ad61ec306f19071f/src/rust/target/armv7-linux-androideabi/release/deps/libregex-32042ace5bd46261.rmeta --cap-lints allow`
         Compiling pyo3 v0.14.5
           Running `rustc --crate-name build_script_build --edition=2018 /data/data/com.termux/files/home/.cargo/registry/src/github.com-1285ae84e5963aae/pyo3-0.14.5/build.rs --error-format=json --json=diagnostic-rendered-ansi,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debug-assertions=off -C overflow-checks=on --cfg 'feature="abi3"' --cfg 'feature="abi3-py36"' --cfg 'feature="abi3-py37"' --cfg 'feature="abi3-py38"' --cfg 'feature="abi3-py39"' --cfg 'feature="default"' --cfg 'feature="extension-module"' --cfg 'feature="indoc"' --cfg 'feature="macros"' --cfg 'feature="paste"' --cfg 'feature="pyo3-macros"' --cfg 'feature="unindent"' -C metadata=0b912c7643d53a26 -C extra-filename=-0b912c7643d53a26 --out-dir /data/data/com.termux/files/usr/tmp/pip-install-s2kk80in/cryptography_7e977a72b93f4a14ad61ec306f19071f/src/rust/target/release/build/pyo3-0b912c7643d53a26 -L dependency=/data/data/com.termux/files/usr/tmp/pip-install-s2kk80in/cryptography_7e977a72b93f4a14ad61ec306f19071f/src/rust/target/release/deps --extern pyo3_build_config=/data/data/com.termux/files/usr/tmp/pip-install-s2kk80in/cryptography_7e977a72b93f4a14ad61ec306f19071f/src/rust/target/release/deps/libpyo3_build_config-4cbd50c145f0829e.rlib --cap-lints allow`
         Compiling paste v0.1.18
           Running `rustc --crate-name paste --edition=2018 /data/data/com.termux/files/home/.cargo/registry/src/github.com-1285ae84e5963aae/paste-0.1.18/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C linker-plugin-lto -C overflow-checks=on -C metadata=22c8c41c320a1658 -C extra-filename=-22c8c41c320a1658 --out-dir /data/data/com.termux/files/usr/tmp/pip-install-s2kk80in/cryptography_7e977a72b93f4a14ad61ec306f19071f/src/rust/target/armv7-linux-androideabi/release/deps --target armv7-linux-androideabi -L dependency=/data/data/com.termux/files/usr/tmp/pip-install-s2kk80in/cryptography_7e977a72b93f4a14ad61ec306f19071f/src/rust/target/armv7-linux-androideabi/release/deps -L dependency=/data/data/com.termux/files/usr/tmp/pip-install-s2kk80in/cryptography_7e977a72b93f4a14ad61ec306f19071f/src/rust/target/release/deps --extern paste_impl=/data/data/com.termux/files/usr/tmp/pip-install-s2kk80in/cryptography_7e977a72b93f4a14ad61ec306f19071f/src/rust/target/release/deps/libpaste_impl-16ab47c6b8c76f19.so --extern proc_macro_hack=/data/data/com.termux/files/usr/tmp/pip-install-s2kk80in/cryptography_7e977a72b93f4a14ad61ec306f19071f/src/rust/target/release/deps/libproc_macro_hack-d307e5e663985224.so --cap-lints allow`
           Running `/data/data/com.termux/files/usr/tmp/pip-install-s2kk80in/cryptography_7e977a72b93f4a14ad61ec306f19071f/src/rust/target/release/build/pyo3-0b912c7643d53a26/build-script-build`
      error: failed to run custom build command for `pyo3 v0.14.5`

      Caused by:
        process didn't exit successfully: `/data/data/com.termux/files/usr/tmp/pip-install-s2kk80in/cryptography_7e977a72b93f4a14ad61ec306f19071f/src/rust/target/release/build/pyo3-0b912c7643d53a26/build-script-build` (exit status: 1)
        --- stdout
        cargo:rerun-if-env-changed=PYO3_CROSS
        cargo:rerun-if-env-changed=PYO3_CROSS_LIB_DIR
        cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_VERSION
        cargo:rerun-if-env-changed=_PYTHON_SYSCONFIGDATA_NAME
        cargo:rerun-if-env-changed=PYO3_PYTHON

        --- stderr
        error: cannot set a minimum Python version 3.6 higher than the interpreter version 3.1 (the minimum Python version is implied by the abi3-py36 feature)
      warning: build failed, waiting for other jobs to finish...
      error: build failed

          =============================DEBUG ASSISTANCE=============================
          If you are seeing a compilation error please try the following steps to
          successfully install cryptography:
          1) Upgrade to the latest pip and try again. This will fix errors for most
             users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
          2) Read https://cryptography.io/en/latest/installation/ for specific
             instructions for your platform.
          3) Check our frequently asked questions for more information:
             https://cryptography.io/en/latest/faq/
          4) Ensure you have a recent Rust toolchain installed:
             https://cryptography.io/en/latest/installation/#rust

          Python: 3.10.4
          platform: Linux-4.9.190-perf-gba91b47-armv8l-with-libc
          pip: n/a
          setuptools: 62.1.0
          setuptools_rust: 1.2.0
          =============================DEBUG ASSISTANCE=============================

      error: cargo failed with code: 101

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cryptography
  Building wheel for python-slugify (setup.py) ... done
  Created wheel for python-slugify: filename=python_slugify-4.0.1-py2.py3-none-any.whl size=6780 sha256=cfd882442579e3187849f32694b22c760fde220172716f4e5cdcb2ba6b894c83
  Stored in directory: /data/data/com.termux/cache/pip/wheels/da/41/45/36763666bba17259b9b600166e83777b7e902fb36a38a7d671
  Building wheel for voluptuous (setup.py) ... done
  Created wheel for voluptuous: filename=voluptuous-0.12.2-py3-none-any.whl size=29563 sha256=0a6e0a329ce85e4d30eacd0be3ef05c079e7249ac8f03c2623368011764c6c2c
  Stored in directory: /data/data/com.termux/cache/pip/wheels/37/77/83/939bcbf4afcad5133a6937925aeb659c0340b32cd8aae59538
  Building wheel for MarkupSafe (setup.py) ... done
  Created wheel for MarkupSafe: filename=MarkupSafe-2.1.1-cp310-cp310-linux_armv8l.whl size=21033 sha256=86fc2e7f7b4ec575d6f043ad949e1c52195dbd85b87b0c4da92608588f59c853
  Stored in directory: /data/data/com.termux/cache/pip/wheels/f1/55/f9/11e14e65b712d33c594a5bed305ac4a011dec2b2e67ae07bd3
Successfully built python-slugify voluptuous MarkupSafe
Failed to build cryptography
ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects

PS: The latest version of cryptography 36.0.2 is installed without problems.

What steps will reproduce the bug?

Installing homeassistant:

**1. Install F-droid

  1. Install Termux from F-droid
  2. Termux:API from F-droid**

TERMUX_VERSION="0.118.0"

**4. Start Termux App;

  1. Insert the following commands in order:** • pkg update • apt-get update • pkg upgrade • pkg install openssh • pkg install python • pkg install mosquitto • pkg install nodejs • pkg install termux-api

6. Install homeassistant

$ pip install homeassistant

Collecting homeassistant
  Downloading homeassistant-2022.4.2-py3-none-any.whl (17.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.3/17.3 MB 5.7 MB/s eta 0:00:00
Collecting ifaddr==0.1.7
  Downloading ifaddr-0.1.7-py2.py3-none-any.whl (10 kB)
Collecting voluptuous==0.12.2
  Downloading voluptuous-0.12.2.tar.gz (48 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 48.5/48.5 KB 1.6 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting typing-extensions<5.0,>=3.10.0.2
  Downloading typing_extensions-4.1.1-py3-none-any.whl (26 kB)
Collecting astral==2.2
  Downloading astral-2.2-py2.py3-none-any.whl (30 kB)
pip install homeassistant
Collecting aiohttp==3.8.1
  Downloading aiohttp-3.8.1.tar.gz (7.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.3/7.3 MB 6.1 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... -^[^\pip install homeassistant                                                                                                                                                                       -^[                                                                                                                                                                                                                                             done
Collecting pyyaml==6.0
  Downloading PyYAML-6.0.tar.gz (124 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 125.0/125.0 KB 5.4 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting async-timeout==4.0.2
  Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting PyJWT==2.3.0
  Downloading PyJWT-2.3.0-py3-none-any.whl (16 kB)
Collecting voluptuous-serialize==2.5.0
  Downloading voluptuous_serialize-2.5.0-py3-none-any.whl (6.8 kB)
Collecting awesomeversion==22.2.0
  Downloading awesomeversion-22.2.0-py3-none-any.whl (12 kB)
Collecting requests==2.27.1
  Downloading requests-2.27.1-py2.py3-none-any.whl (63 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.1/63.1 KB 3.3 MB/s eta 0:00:00
Collecting httpx==0.22.0
  Downloading httpx-0.22.0-py3-none-any.whl (84 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.2/84.2 KB 4.1 MB/s eta 0:00:00
Collecting attrs==21.2.0
  Downloading attrs-21.2.0-py2.py3-none-any.whl (53 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.7/53.7 KB 2.3 MB/s eta 0:00:00
Collecting certifi>=2021.5.30
  Downloading certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 149.2/149.2 KB 5.6 MB/s eta 0:00:00
Collecting python-slugify==4.0.1
  Downloading python-slugify-4.0.1.tar.gz (11 kB)
  Preparing metadata (setup.py) ... done
Collecting jinja2==3.1.0
  Downloading Jinja2-3.1.0-py3-none-any.whl (132 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.6/132.6 KB 4.3 MB/s eta 0:00:00
Collecting yarl==1.7.2
  Downloading yarl-1.7.2.tar.gz (168 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 168.6/168.6 KB 6.3 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting cryptography==35.0.0
  Downloading cryptography-35.0.0.tar.gz (559 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 559.9/559.9 KB 4.0 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting atomicwrites==1.4.0
  Downloading atomicwrites-1.4.0-py2.py3-none-any.whl (6.8 kB)
Requirement already satisfied: pip<22.1,>=21.0 in /data/data/com.termux/files/usr/lib/python3.10/site-packages (from homeassistant) (22.0.4)
Collecting bcrypt==3.1.7
  Downloading bcrypt-3.1.7.tar.gz (42 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.5/42.5 KB 1.9 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting ciso8601==2.2.0
  Downloading ciso8601-2.2.0.tar.gz (18 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting charset-normalizer<3.0,>=2.0
  Downloading charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting frozenlist>=1.1.1
  Downloading frozenlist-1.3.0.tar.gz (65 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.5/65.5 KB 3.8 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting aiosignal>=1.1.2
  Downloading aiosignal-1.2.0-py3-none-any.whl (8.2 kB)
Collecting multidict<7.0,>=4.5
  Downloading multidict-6.0.2.tar.gz (50 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 50.3/50.3 KB 689.2 kB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pytz
  Downloading pytz-2022.1-py2.py3-none-any.whl (503 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 503.5/503.5 KB 3.6 MB/s eta 0:00:00
Collecting six>=1.4.1
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting cffi>=1.1
  Using cached cffi-1.15.0.tar.gz (484 kB)
  Preparing metadata (setup.py) ... done
Collecting rfc3986[idna2008]<2,>=1.3
  Downloading rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)
Collecting httpcore<0.15.0,>=0.14.5
  Downloading httpcore-0.14.7-py3-none-any.whl (68 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 68.3/68.3 KB 3.0 MB/s eta 0:00:00
Collecting sniffio
  Downloading sniffio-1.2.0-py3-none-any.whl (10 kB)
Collecting MarkupSafe>=2.0
  Downloading MarkupSafe-2.1.1.tar.gz (18 kB)
  Preparing metadata (setup.py) ... done
Collecting text-unidecode>=1.3
  Downloading text_unidecode-1.3-py2.py3-none-any.whl (78 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.2/78.2 KB 2.4 MB/s eta 0:00:00
Collecting urllib3<1.27,>=1.21.1
  Downloading urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 139.0/139.0 KB 5.0 MB/s eta 0:00:00
Collecting idna<4,>=2.5
  Downloading idna-3.3-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 KB 3.1 MB/s eta 0:00:00
Collecting pycparser
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Collecting anyio==3.*
  Downloading anyio-3.5.0-py3-none-any.whl (79 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 79.2/79.2 KB 4.2 MB/s eta 0:00:00
Collecting h11<0.13,>=0.11
  Downloading h11-0.12.0-py3-none-any.whl (54 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.9/54.9 KB 2.2 MB/s eta 0:00:00
Using legacy 'setup.py install' for python-slugify, since package 'wheel' is not installed.
Using legacy 'setup.py install' for voluptuous, since package 'wheel' is not installed.
Using legacy 'setup.py install' for cffi, since package 'wheel' is not installed.
Using legacy 'setup.py install' for MarkupSafe, since package 'wheel' is not installed.
Building wheels for collected packages: aiohttp, bcrypt, ciso8601, cryptography, pyyaml, yarl, frozenlist, multidict
  Building wheel for aiohttp (pyproject.toml) ... done
  Created wheel for aiohttp: filename=aiohttp-3.8.1-cp310-cp310-linux_armv8l.whl size=883779 sha256=c5b01d2d6194e083b08caa9b0464778aab7e2fb55ecd11f604a6f88a4719ba09
  Stored in directory: /data/data/com.termux/cache/pip/wheels/97/d4/91/103910e7a63d3fb95da70055da4de7ead0b60822d3e860e72e
  Building wheel for bcrypt (pyproject.toml) ... done
  Created wheel for bcrypt: filename=bcrypt-3.1.7-cp310-cp310-linux_armv8l.whl size=47984 sha256=9288b9f2013c13251909ac6ea0e85b263d1b7113240c7332812a36ac9ac648b0
  Stored in directory: /data/data/com.termux/cache/pip/wheels/6b/2c/ce/eccd7a77bce0d2b9b1f1fa5fe367036e7ac494677d2377d3dd
  Building wheel for ciso8601 (pyproject.toml) ... done
  Created wheel for ciso8601: filename=ciso8601-2.2.0-cp310-cp310-linux_armv8l.whl size=25831 sha256=9bd39d4711cd4fba219cf407cd466e9702ec5cd1338fe152bb9b6f21f3eca229
  Stored in directory: /data/data/com.termux/cache/pip/wheels/02/1f/3b/a3fc12fc79c99e80e030beb98f07c92cbf1e43e00a7abccfcb
  Building wheel for cryptography (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for cryptography (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [170 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-armv8l-cpython-310
      creating build/lib.linux-armv8l-cpython-310/cryptography
      copying src/cryptography/__about__.py -> build/lib.linux-armv8l-cpython-310/cryptography
      copying src/cryptography/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography
      copying src/cryptography/exceptions.py -> build/lib.linux-armv8l-cpython-310/cryptography
      copying src/cryptography/fernet.py -> build/lib.linux-armv8l-cpython-310/cryptography
      copying src/cryptography/utils.py -> build/lib.linux-armv8l-cpython-310/cryptography
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat
      copying src/cryptography/hazmat/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat
      copying src/cryptography/hazmat/_oid.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat
      creating build/lib.linux-armv8l-cpython-310/cryptography/x509
      copying src/cryptography/x509/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/x509
      copying src/cryptography/x509/base.py -> build/lib.linux-armv8l-cpython-310/cryptography/x509
      copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-armv8l-cpython-310/cryptography/x509
      copying src/cryptography/x509/extensions.py -> build/lib.linux-armv8l-cpython-310/cryptography/x509
      copying src/cryptography/x509/general_name.py -> build/lib.linux-armv8l-cpython-310/cryptography/x509
      copying src/cryptography/x509/name.py -> build/lib.linux-armv8l-cpython-310/cryptography/x509
      copying src/cryptography/x509/ocsp.py -> build/lib.linux-armv8l-cpython-310/cryptography/x509
      copying src/cryptography/x509/oid.py -> build/lib.linux-armv8l-cpython-310/cryptography/x509
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends
      copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends
      copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings
      copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/_asymmetric.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/_cipheralgorithm.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/_serialization.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/backends/openssl
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings/openssl
      copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings/openssl
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/types.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/asymmetric
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/ciphers
      copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/ciphers
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/kdf
      copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/kdf
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/pkcs7.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/serialization
      copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/serialization
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/twofactor
      copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/primitives/twofactor
      running egg_info
      writing src/cryptography.egg-info/PKG-INFO
      writing dependency_links to src/cryptography.egg-info/dependency_links.txt
      writing requirements to src/cryptography.egg-info/requires.txt
      writing top-level names to src/cryptography.egg-info/top_level.txt
      reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      no previously-included directories found matching 'docs/_build'
      warning: no previously-included files found matching 'vectors'
      warning: no previously-included files matching '*' found under directory 'vectors'
      warning: no previously-included files matching '*' found under directory '.github'
      warning: no previously-included files found matching 'release.py'
      warning: no previously-included files found matching '.coveragerc'
      warning: no previously-included files found matching 'codecov.yml'
      warning: no previously-included files found matching '.readthedocs.yml'
      warning: no previously-included files found matching 'dev-requirements.txt'
      warning: no previously-included files found matching 'tox.ini'
      warning: no previously-included files found matching 'mypy.ini'
      warning: no previously-included files matching '*' found under directory '.zuul.d'
      warning: no previously-included files matching '*' found under directory '.zuul.playbooks'
      adding license file 'LICENSE'
      adding license file 'LICENSE.APACHE'
      adding license file 'LICENSE.BSD'
      adding license file 'LICENSE.PSF'
      writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
      copying src/cryptography/py.typed -> build/lib.linux-armv8l-cpython-310/cryptography
      creating build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/__init__.pyi -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/asn1.pyi -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/ocsp.pyi -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings/_rust
      copying src/cryptography/hazmat/bindings/_rust/x509.pyi -> build/lib.linux-armv8l-cpython-310/cryptography/hazmat/bindings/_rust
      running build_ext
      generating cffi module 'build/temp.linux-armv8l-cpython-310/_openssl.c'
      creating build/temp.linux-armv8l-cpython-310
      running build_rust

          =============================DEBUG ASSISTANCE=============================
          If you are seeing a compilation error please try the following steps to
          successfully install cryptography:
          1) Upgrade to the latest pip and try again. This will fix errors for most
             users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
          2) Read https://cryptography.io/en/latest/installation/ for specific
             instructions for your platform.
          3) Check our frequently asked questions for more information:
             https://cryptography.io/en/latest/faq/
          4) Ensure you have a recent Rust toolchain installed:
             https://cryptography.io/en/latest/installation/#rust

          Python: 3.10.4
          platform: Linux-4.9.190-perf-gba91b47-armv8l-with-libc
          pip: n/a
          setuptools: 62.1.0
          setuptools_rust: 1.2.0
          =============================DEBUG ASSISTANCE=============================

      error: can't find Rust compiler

      If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

      To update pip, run:

          pip install --upgrade pip

      and then retry package installation.

      If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.

      This package requires Rust >=1.41.0.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for cryptography
  Building wheel for pyyaml (pyproject.toml) ... done
  Created wheel for pyyaml: filename=PyYAML-6.0-cp310-cp310-linux_armv8l.whl size=45334 sha256=95896a9f2a184e1f16fac96cace3f3d570a1699f0334cfac72be2779ae79ca40
  Stored in directory: /data/data/com.termux/cache/pip/wheels/1d/f3/b4/4aea0992adbed14b36ce9c3857d3707c762a4374479230685d
  Building wheel for yarl (pyproject.toml) ... done
  Created wheel for yarl: filename=yarl-1.7.2-cp310-cp310-linux_armv8l.whl size=194488 sha256=b9ef861ffaffc0d2f788911d8e14473a6ae29b9523d3410a1e25166a78c3efe1
  Stored in directory: /data/data/com.termux/cache/pip/wheels/9b/e5/c3/e76aa4bac0a4fbbc89228ad0e68e19cc99c2573bde394804f2
  Building wheel for frozenlist (pyproject.toml) ... done
  Created wheel for frozenlist: filename=frozenlist-1.3.0-cp310-cp310-linux_armv8l.whl size=93880 sha256=6ac2b7485df3f1714f86dcc533fda1cd2a0c6eb7b618e18e5198ad8a9cb28752
  Stored in directory: /data/data/com.termux/cache/pip/wheels/6d/95/43/b07f0dff6ff290bc66f8193b24433e3e0fe75bc1bf43d72183
  Building wheel for multidict (pyproject.toml) ... done
  Created wheel for multidict: filename=multidict-6.0.2-cp310-cp310-linux_armv8l.whl size=65443 sha256=db76a965884a7af9aea11511492623c13aba285564e652c6721461e462f9bbf3
  Stored in directory: /data/data/com.termux/cache/pip/wheels/cb/fb/59/57e7daefcc2470317d728176902bb9efef48a386e6060e1b87
Successfully built aiohttp bcrypt ciso8601 pyyaml yarl frozenlist multidict
Failed to build cryptography
ERROR: Could not build wheels for cryptography, which is required to install pyproject.toml-based projects

7. Install Rust

$ pkg install rust

~ $ rustc -vV
rustc 1.59.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: armv7-linux-androideabi
release: 1.59.0
LLVM version: 13.0.1

Set the CARGO_BUILD_TARGET environment variable:

~ $ export CARGO_BUILD_TARGET=armv7-linux-androideabi

8. Install Whell

~ $ pip install wheel

Collecting wheel Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB) Installing collected packages: wheel Successfully installed wheel-0.37.1

9. Install homeassistant again

What is the expected behavior?

Homeassistant installed.

System information

termux-info: TERMUX_VERSION="0.118.0"

6sKaizen commented 2 years ago

May I ask why this was closed? I can repeat the above on a Galaxy Note 8 and S10+ (different CARGO_BUILD_TARGET).

Is there another case/issuw with fix that I've overlooked?

To add to the above I also tried installing cargo & rust prior to homeassistant.

Is there a homeassistant specifc thread forum?

Thank you kindly.

MrAdityaAlok commented 2 years ago

May I ask why this was closed?

This wasn't really a bug report.

I can repeat the above on a Galaxy Note 8 and S10+ (different CARGO_BUILD_TARGET)

Post your logs, then maybe we could help.