Package: python-scrypt
Version: 0.6.1-5.1
Severity: wishlist
Tags: patch

Hello and thank you for packaging scrypt.

As discussed on IRC, could you please support Python3?
I'm attaching a patch to add Python3 support, switch to Pybuild, and implement
some minor improvements.

Thanks

--
Federico

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (600, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-scrypt depends on:
ii  libc6        2.18-4
ii  libssl1.0.0  1.0.1f-1
ii  python       2.7.5-5

python-scrypt recommends no packages.

python-scrypt suggests no packages.

-- no debconf information
diff --git a/debian/changelog b/debian/changelog
index 8bcbad8..c24953f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+python-scrypt (0.6.1-5.2) UNRELEASED; urgency=low
+
+  * Add Python3 support
+  * Bump Standards-Version to 3.9.5
+  * Switch to Pybuild
+
+ -- Federico Ceratto <federico.cera...@gmail.com>  Thu, 20 Mar 2014 21:45:07 +0000
+
 python-scrypt (0.6.1-5.1) unstable; urgency=low
 
   * NMU: as suggested by Dejan Latinovic there is only a dependency on
diff --git a/debian/control b/debian/control
index 8b04abb..a7fd886 100644
--- a/debian/control
+++ b/debian/control
@@ -2,12 +2,23 @@ Source: python-scrypt
 Maintainer: Micah Anderson <mi...@debian.org>
 Section: python
 Priority: optional
-Build-Depends: python-all-dev (>= 2.6.6-3), debhelper (>= 9), libssl-dev
-Standards-Version: 3.9.4
+Build-Depends:
+ debhelper (>= 9~),
+ dh-python,
+ libssl-dev,
+ python-all-dev (>= 2.6.6-3),
+ python3-all,
+ python3-all-dev,
+Standards-Version: 3.9.5
+Homepage: https://bitbucket.org/mhallin/py-scrypt/src
+X-Python-Version: >= 2.5
+X-Python3-Version: >= 3.2
 
 Package: python-scrypt
 Architecture: any
 Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends}
+Recommends: ${python:Recommends}
+Provides: ${python:Provides}
 Description: Python bindings for the scrypt key derivation function library
  This is a set of Python bindings for the scrypt key derivation function. 
  .
@@ -18,3 +29,19 @@ Description: Python bindings for the scrypt key derivation function library
  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.
+
+Package: python3-scrypt
+Architecture: any
+Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends}
+Recommends: ${python:Recommends}
+Provides: ${python:Provides}
+Description: Python3 bindings for the scrypt key derivation function library
+ This is a set of Python3 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.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..a1320b1
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.rst
diff --git a/debian/rules b/debian/rules
index bcebae9..99e54a5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,7 @@
 #!/usr/bin/make -f
+# -*- makefile -*-
+export PYBUILD_NAME=scrypt
+export DH_VERBOSE=1
 
 %:
-	dh $@ --with python2 --buildsystem=python_distutils
-
-
+	dh $@ --with python2,python3 --buildsystem=pybuild

Reply via email to