Source: pysha3 Version: 1.0.2-4.1 Severity: serious Tags: patch ftbfs Justification: fails to build from source (but built successfully in the past)
dh-python 5.20211105 fixed tox detection based on Build-Depends, which causes it to try to run tox tests on pysha3. As pysha3 doesn't have a tox.ini, this fails: dh_auto_test -O--buildsystem=pybuild I: pybuild base:237: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_sha3/build; tox -c /<<PKGBUILDDIR>>/tox.ini --sitepackages -e py39 ERROR: /<<PKGBUILDDIR>>/tox.ini is neither file or directory ERROR: tox config file (either pyproject.toml, tox.ini, setup.cfg) not found E: pybuild pybuild:354: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_sha3/build; tox -c /<<PKGBUILDDIR>>/tox.ini --sitepackages -e py39 dh_auto_test: error: pybuild --test --test-tox -i python{version} -p 3.9 returned exit code 13 make: *** [debian/rules:20: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 Here is a trivial patch to resolve the issue: diff -Nru pysha3-1.0.2/debian/control pysha3-1.0.2/debian/control --- pysha3-1.0.2/debian/control 2020-01-19 01:43:49.000000000 -0800 +++ pysha3-1.0.2/debian/control 2021-11-05 00:54:52.000000000 -0700 @@ -3,7 +3,6 @@ Section: python Priority: optional Build-Depends: - tox, python3-flake8, python3-setuptools, dh-python, SR