Hi, Here's a patch to package the newest upstream version and add Python 3 support. Please consider applying it and uploading, or allowing me to NMU this change.
Cheers, Thomas Goirand (zigo)
diff -u -N -r python-scrypt-0.6.1/debian/changelog python-scrypt-0.8.0/debian/changelog --- python-scrypt-0.6.1/debian/changelog 2013-11-22 19:33:04.000000000 +0100 +++ python-scrypt-0.8.0/debian/changelog 2017-10-05 19:46:08.372645625 +0200 @@ -1,3 +1,12 @@ +python-scrypt (0.8.0-0.1) unstable; urgency=medium + + * Non-maintainer upload. + * New upstream release (Closes: #877732). + * Added Python 3 support (Closes: #742225). + * Build-depends: on python{3,}-setuptools. + + -- Thomas Goirand <z...@debian.org> Thu, 05 Oct 2017 17:07:52 +0200 + python-scrypt (0.6.1-5.1) unstable; urgency=low * NMU: as suggested by Dejan Latinovic there is only a dependency on diff -u -N -r python-scrypt-0.6.1/debian/control python-scrypt-0.8.0/debian/control --- python-scrypt-0.6.1/debian/control 2013-11-22 19:10:39.000000000 +0100 +++ python-scrypt-0.8.0/debian/control 2017-10-05 17:18:07.435628352 +0200 @@ -2,13 +2,13 @@ Maintainer: Micah Anderson <mi...@debian.org> Section: python Priority: optional -Build-Depends: python-all-dev (>= 2.6.6-3), debhelper (>= 9), libssl-dev +Build-Depends: python-all-dev, debhelper (>= 9), libssl-dev, python3-all-dev, python-setuptools, python3-setuptools Standards-Version: 3.9.4 Package: python-scrypt Architecture: any Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends} -Description: Python bindings for the scrypt key derivation function library +Description: bindings for the scrypt key derivation function library - Python 2.7 This is a set of Python bindings for the scrypt key derivation function. . Scrypt is useful when encrypting password as it is possible to specify a @@ -18,3 +18,21 @@ billion passwords will take a considerable amount of time. This is in contrast to more traditional hash functions such as MD5 or the SHA family which can be implemented extremely fast on cheap hardware. + . + This package provides the Python 2.7 module. + +Package: python3-scrypt +Architecture: any +Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends} +Description: bindings for the scrypt key derivation function library - Python 3.x + This is a set of Python bindings for the scrypt key derivation function. + . + Scrypt is useful when encrypting password as it is possible to specify a + minimum amount of time to use when encrypting and decrypting. If, for + example, a password takes 0.05 seconds to verify, a user won't notice the + slight delay when signing in, but doing a brute force search of several + billion passwords will take a considerable amount of time. This is in + contrast to more traditional hash functions such as MD5 or the SHA family + which can be implemented extremely fast on cheap hardware. + . + This package provides the Python 3.x module. diff -u -N -r python-scrypt-0.6.1/debian/python3-scrypt.lintian-overrides python-scrypt-0.8.0/debian/python3-scrypt.lintian-overrides --- python-scrypt-0.6.1/debian/python3-scrypt.lintian-overrides 1970-01-01 01:00:00.000000000 +0100 +++ python-scrypt-0.8.0/debian/python3-scrypt.lintian-overrides 2017-10-05 19:42:14.132731466 +0200 @@ -0,0 +1,4 @@ +# Only the debian packaging is covered by the GPL, the rest is a 2-clause BSD +# tell lintian to not complain: +python3-scrypt: possible-gpl-code-linked-with-openssl + diff -u -N -r python-scrypt-0.6.1/debian/rules python-scrypt-0.8.0/debian/rules --- python-scrypt-0.6.1/debian/rules 2013-05-30 21:44:57.000000000 +0200 +++ python-scrypt-0.8.0/debian/rules 2017-10-05 17:22:50.917593705 +0200 @@ -1,6 +1,17 @@ #!/usr/bin/make -f -%: - dh $@ --with python2 --buildsystem=python_distutils +PYTHONS:=$(shell pyversions -vr) +PYTHON3S:=$(shell py3versions -vr) +%: + dh $@ --with python2,python3 --buildsystem=python_distutils +override_dh_auto_install: + set -e ; for pyvers in $(PYTHONS); do \ + python$$pyvers setup.py install --install-layout=deb \ + --root $(CURDIR)/debian/python-scrypt; \ + done + set -e ; for pyvers in $(PYTHON3S); do \ + python$$pyvers setup.py install --install-layout=deb \ + --root $(CURDIR)/debian/python3-scrypt; \ + done