I am uploading a NMU to fix this.
Please find the changes attached.
diff -Nru unicrypto-0.0.10/debian/changelog unicrypto-0.0.10/debian/changelog
--- unicrypto-0.0.10/debian/changelog   2024-05-24 04:53:50.000000000 +0200
+++ unicrypto-0.0.10/debian/changelog   2025-12-29 16:30:53.000000000 +0100
@@ -1,3 +1,10 @@
+unicrypto (0.0.10-2.1) unstable; urgency=medium
+
+  * Non-maintainer upload
+  * Drop Build-Depends: python3-mbedtls (Closes: #1090176)
+
+ -- Bastian Germann <[email protected]>  Mon, 29 Dec 2025 16:30:53 +0100
+
 unicrypto (0.0.10-2) unstable; urgency=medium
 
   * Source-only upload to allow testing migration
diff -Nru unicrypto-0.0.10/debian/control unicrypto-0.0.10/debian/control
--- unicrypto-0.0.10/debian/control     2024-05-24 04:53:50.000000000 +0200
+++ unicrypto-0.0.10/debian/control     2025-12-29 16:30:15.000000000 +0100
@@ -8,7 +8,6 @@
                pybuild-plugin-pyproject,
                python3-all,
                python3-cryptography,
-               python3-mbedtls,
                python3-pycryptodome,
                python3-pytest,
                python3-setuptools
diff -Nru unicrypto-0.0.10/debian/patches/002.skip-mbedtls.patch 
unicrypto-0.0.10/debian/patches/002.skip-mbedtls.patch
--- unicrypto-0.0.10/debian/patches/002.skip-mbedtls.patch      1970-01-01 
01:00:00.000000000 +0100
+++ unicrypto-0.0.10/debian/patches/002.skip-mbedtls.patch      2025-12-29 
16:30:53.000000000 +0100
@@ -0,0 +1,214 @@
+Description: Skip mbedtls backend tests
+ python-mbedtls is abandoned. In order to get rid of it, disable the tests.
+Author: Bastian Germann <[email protected]>
+Bug-Debian: https://bugs.debian.org/1090176
+---
+--- unicrypto-0.0.10.orig/tests/test_aes.py
++++ unicrypto-0.0.10/tests/test_aes.py
+@@ -844,94 +844,6 @@ def test_gcm_256(cipherobj):
+       gcm_enc(cipherobj, aes_gcm_256)
+ 
+ 
[email protected]("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-def test_ecb_128(cipherobj):
+-      ecb_enc(cipherobj, aes_128_ecb)
+-
[email protected]("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-def test_ecb_192(cipherobj):
+-      ecb_enc(cipherobj, aes_192_ecb)
+-
[email protected]("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-def test_ecb_256(cipherobj):
+-      ecb_enc(cipherobj, aes_256_ecb)
+-
[email protected]("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-def test_ecb_long(cipherobj):
+-      ecb_enc(cipherobj, aes_ecb_long)
+-
[email protected]("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-def test_cbc_128(cipherobj):
+-      cbc_enc(cipherobj, aes_cbc_128)
+-
[email protected]("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-def test_cbc_192(cipherobj):
+-      cbc_enc(cipherobj, aes_cbc_192)
+-
[email protected]("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-def test_cbc_256(cipherobj):
+-      cbc_enc(cipherobj, aes_cbc_256)
+-
[email protected]("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-def test_cbc_long(cipherobj):
+-      cbc_enc(cipherobj, aes_cbc_long)
+-
+-#@pytest.mark.parametrize("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-#def test_cfb_fb1(cipherobj):
+-#     cfb_8_enc(cipherobj, aes_cfb_feedbacksize_1, 8)
+-
[email protected]("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-def test_cfb_128_fb16(cipherobj):
+-      cfb_enc(cipherobj, aes_cfb_128_feedbacksize_16, 128)
+-
[email protected]("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-def test_cfb_192_fb16(cipherobj):
+-      cfb_enc(cipherobj, aes_cfb_192_feedbacksize_16, 128)
+-
[email protected]("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-def test_cfb_256_fb16(cipherobj):
+-      cfb_enc(cipherobj, aes_cfb_256_feedbacksize_16, 128)
+-
[email protected]("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-def test_cfb_long_fb16(cipherobj):
+-      cfb_enc(cipherobj, aes_cfb_long, 128)
+-
[email protected]("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-def test_ofb_128(cipherobj):
+-      ofb_enc(cipherobj, aes_ofb_128)
+-
[email protected]("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-def test_ofb_192(cipherobj):
+-      ofb_enc(cipherobj, aes_ofb_192)
+-
[email protected]("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-def test_ofb_256(cipherobj):
+-      ofb_enc(cipherobj, aes_ofb_256)
+-
[email protected]("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-def test_ofb_long(cipherobj):
+-      ofb_enc(cipherobj, aes_ofb_long)
+-
[email protected]("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-def test_ctr_128(cipherobj):
+-      ctr_enc(cipherobj, aes_ctr_128)
+-
[email protected]("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-def test_ctr_192(cipherobj):
+-      ctr_enc(cipherobj, aes_ctr_192)
+-
[email protected]("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-def test_ctr_256(cipherobj):
+-      ctr_enc(cipherobj, aes_ctr_256)
+-
[email protected]("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-def test_ctr_long(cipherobj):
+-      ctr_enc(cipherobj, aes_ctr_long)
+-
[email protected]("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+-def test_ccm(cipherobj):
+-      ccm_enc(cipherobj, aes_ccm)
+-
+ #@pytest.mark.parametrize("cipherobj", [get_cipher_by_name('AES', 'mbedtls')])
+ #def test_gcm_128(cipherobj):
+ #     gcm_enc(cipherobj, aes_gcm_128)
+--- unicrypto-0.0.10.orig/tests/test_des.py
++++ unicrypto-0.0.10/tests/test_des.py
+@@ -94,11 +94,3 @@ def test_ecb(cipherobj):
+ def test_cbc(cipherobj):
+       cbc_enc(cipherobj, des_cbc)
+ 
[email protected]("cipherobj", [get_cipher_by_name('DES', 'mbedtls')])
+-def test_ecb(cipherobj):
+-      ecb_enc(cipherobj, des_ecb)
+-
[email protected]("cipherobj", [get_cipher_by_name('DES', 'mbedtls')])
+-def test_cbc(cipherobj):
+-      cbc_enc(cipherobj, des_cbc)
+-
+--- unicrypto-0.0.10.orig/tests/test_rc4.py
++++ unicrypto-0.0.10/tests/test_rc4.py
+@@ -64,10 +64,6 @@ def test_rc4(cipherobj):
+ def test_rc4(cipherobj):
+       rc4_enc(cipherobj, rc4_vectors)
+ 
[email protected]("cipherobj", [get_cipher_by_name('RC4', 'mbedtls')])
+-def test_rc4(cipherobj):
+-      rc4_enc(cipherobj, rc4_vectors)
+-
+ @pytest.mark.parametrize("cipherobj", [get_cipher_by_name('RC4', 
'cryptography')])
+ def test_rc4(cipherobj):
+       if str(cipherobj).find('cryptography.RC4') == -1:
+--- unicrypto-0.0.10.orig/tests/test_tdes.py
++++ unicrypto-0.0.10/tests/test_tdes.py
+@@ -83,14 +83,6 @@ def test_ecb(cipherobj):
+ def test_cbc(cipherobj):
+       cbc_enc(cipherobj, tdes_cbc)
+ 
[email protected]("cipherobj", [get_cipher_by_name('TDES', 'mbedtls')])
+-def test_ecb(cipherobj):
+-      ecb_enc(cipherobj, tdes_ecb)
+-
[email protected]("cipherobj", [get_cipher_by_name('TDES', 'mbedtls')])
+-def test_cbc(cipherobj):
+-      cbc_enc(cipherobj, tdes_cbc)
+-
+ @pytest.mark.parametrize("cipherobj", [get_cipher_by_name('TDES', 
'pycryptodomex')])
+ def test_ecb(cipherobj):
+       ecb_enc(cipherobj, tdes_ecb)
+--- unicrypto-0.0.10.orig/tests/test_import.py
++++ unicrypto-0.0.10/tests/test_import.py
+@@ -1,10 +1,5 @@
+ from unicrypto import get_cipher_by_name
+ 
+-def test_aes_mbedtls():
+-    obj = get_cipher_by_name('AES', 'mbedtls')
+-    if str(obj).find('unicrypto.backends.mbedtls.AES') == -1:
+-        raise Exception('Wrong backend selected!')
+-
+ def test_aes_pycryptodome():
+     obj = get_cipher_by_name('AES', 'pycryptodome')
+     if str(obj).find('unicrypto.backends.pycryptodome.AES') == -1:
+@@ -25,11 +20,6 @@ def test_aes_pure():
+     if str(obj).find('unicrypto.backends.pure.AES') == -1:
+         raise Exception('Wrong backend selected!')
+ 
+-def test_rc4_mbedtls():
+-    obj = get_cipher_by_name('RC4', 'mbedtls')
+-    if str(obj).find('unicrypto.backends.mbedtls.RC4') == -1:
+-        raise Exception('Wrong backend selected!')
+-
+ def test_rc4_pycryptodome():
+     obj = get_cipher_by_name('RC4', 'pycryptodome')
+     if str(obj).find('unicrypto.backends.pycryptodome.RC4') == -1:
+@@ -50,11 +40,6 @@ def test_rc4_pycryptodomex():
+     if str(obj).find('unicrypto.backends.pycryptodomex.RC4') == -1:
+         raise Exception('Wrong backend selected!')
+ 
+-def test_des_mbedtls():
+-    obj = get_cipher_by_name('DES', 'mbedtls')
+-    if str(obj).find('unicrypto.backends.mbedtls.DES') == -1:
+-        raise Exception('Wrong backend selected!')
+-
+ def test_des_pycryptodome():
+     obj = get_cipher_by_name('DES', 'pycryptodome')
+     if str(obj).find('unicrypto.backends.pycryptodome.DES') == -1:
+@@ -76,11 +61,6 @@ def test_des_pycryptodomex():
+         raise Exception('Wrong backend selected!')
+     
+ 
+-def test_tdes_mbedtls():
+-    obj = get_cipher_by_name('TDES', 'mbedtls')
+-    if str(obj).find('unicrypto.backends.mbedtls.TDES') == -1:
+-        raise Exception('Wrong backend selected!')
+-
+ def test_tdes_pycryptodome():
+     obj = get_cipher_by_name('TDES', 'pycryptodome')
+     if str(obj).find('unicrypto.backends.pycryptodome.TDES') == -1:
+@@ -101,11 +81,6 @@ def test_tdes_pycryptodomex():
+     if str(obj).find('unicrypto.backends.pycryptodomex.TDES') == -1:
+         raise Exception('Wrong backend selected!')
+ 
+-def test_rc4_mbedtls():
+-    obj = get_cipher_by_name('RC4', 'mbedtls')
+-    if str(obj).find('unicrypto.backends.mbedtls.RC4') == -1:
+-        raise Exception('Wrong backend selected!')
+-
+ def test_rc4_pycryptodome():
+     obj = get_cipher_by_name('RC4', 'pycryptodome')
+     if str(obj).find('unicrypto.backends.pycryptodome.RC4') == -1:
+@@ -128,4 +103,4 @@ def test_rc4_pycryptodomex():
+ 
+ 
+ if __name__ == '__main__':
+-    test_aes_mbedtls()
+\ No newline at end of file
++    test_aes_cryptography()
diff -Nru unicrypto-0.0.10/debian/patches/series 
unicrypto-0.0.10/debian/patches/series
--- unicrypto-0.0.10/debian/patches/series      2024-05-24 04:53:50.000000000 
+0200
+++ unicrypto-0.0.10/debian/patches/series      2025-12-29 16:30:53.000000000 
+0100
@@ -1 +1,2 @@
 001.fixed-import-module.patch
+002.skip-mbedtls.patch

Reply via email to