debhelper (>= 9),
  dh-python,
  pandoc,
- python-pkg-resources,
+ python3-pkg-resources,
  zip
 Build-Depends-Indep:
- python
-X-Python-Version: >= 2.6
+ python3
+X-Python3-Version: >= 3.2
 Standards-Version: 3.9.7
 Homepage: https://rg3.github.com/youtube-dl/
 Vcs-Git: https://anonscm.debian.org/git/collab-maint/youtube-dl.git
 Architecture: all
 Pre-Depends: dpkg (>= 1.15.7.2)
 Depends:
- python-pkg-resources,
+ python3-pkg-resources,
  ${misc:Depends},
- ${python:Depends}
+ ${python3:Depends},
 Recommends:
  aria2 | wget | curl,
  ca-certificates,
 
 #!/usr/bin/make -f
+
+#export DH_VERBOSE = 1
+export PYBUILD_NAME = youtube_dl
+export PATH := $(CURDIR)/debian/utils:$(PATH)
+
 %:
-       dh $@ --with python2 --buildsystem=python_distutils \
-               --with bash-completion
+       dh $@ --with python3 --buildsystem=pybuild --with bash-completion
 
 override_dh_auto_configure:
        PREFIX=/usr SYSCONFDIR=/etc make