diff --git a/debian/control b/debian/control
index 24d42523..1f3508d1 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,6 @@ Priority: optional
 Maintainer: YunoHost Contributors <contrib@yunohost.org>
 Build-Depends: debhelper (>= 9), python3 (>= 3.7), dh-python, python3-setuptools, python3-psutil, python3-all (>= 3.7)
 Standards-Version: 3.9.6
-X-Python-Version: >= 3.7
 Homepage: https://github.com/YunoHost/moulinette
 
 Package: moulinette
diff --git a/debian/rules b/debian/rules
index 8e4f4ebc..e592279a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,4 @@
 #!/usr/bin/make -f
 
 %:
-	dh $@ --with python2 --buildsystem=python_distutils
+	dh $@ --buildsystem=python_distutils