python-tweetnacl

Download, unpack and build:

wget https://mojzis.com/software/python-tweetnacl/python-tweetnacl-20140309.tar.bz2
bunzip2 < python-tweetnacl-20140309.tar.bz2 | tar -xf -
cd python-tweetnacl-20140309
sh do

Example - build on system with python2.6, python2.7 and development headers only for python2.7:

jan@puma:~/python-tweetnacl-20140309$ sh do
=== Mon Jan  6 15:26:06 CET 2014 === python2.6: starting
=== Mon Jan  6 15:26:06 CET 2014 === python2.6: compiling
tweetnaclmodule.c:1:20: fatal error: Python.h: No such file or directory
compilation terminated.
=== Mon Jan  6 15:26:09 CET 2014 === python2.6: failed
=== Mon Jan  6 15:26:09 CET 2014 === python2.7: starting
=== Mon Jan  6 15:26:09 CET 2014 === python2.7: compiling
=== Mon Jan  6 15:26:15 CET 2014 === python2.7: linking
=== Mon Jan  6 15:26:15 CET 2014 === python2.7: testing test_box.py
=== Mon Jan  6 15:26:37 CET 2014 === python2.7: testing test_box_curve25519xsalsa20poly1305.py
=== Mon Jan  6 15:26:37 CET 2014 === python2.7: testing test_hash.py
=== Mon Jan  6 15:26:38 CET 2014 === python2.7: testing test_hash_sha512.py
=== Mon Jan  6 15:27:41 CET 2014 === python2.7: testing test_onetimeauth.py
=== Mon Jan  6 15:27:41 CET 2014 === python2.7: testing test_onetimeauth_poly1305.py
=== Mon Jan  6 15:27:41 CET 2014 === python2.7: testing test_scalarmult.py
=== Mon Jan  6 15:27:42 CET 2014 === python2.7: testing test_scalarmult_curve25519.py
=== Mon Jan  6 15:27:42 CET 2014 === python2.7: testing test_secretbox.py
=== Mon Jan  6 15:27:42 CET 2014 === python2.7: testing test_secretbox_xsalsa20poly1305.py
=== Mon Jan  6 15:27:43 CET 2014 === python2.7: testing test_sign.py
=== Mon Jan  6 15:28:05 CET 2014 === python2.7: testing test_sign_ed25519.py
=== Mon Jan  6 15:28:05 CET 2014 === python2.7: testing test_stream.py
=== Mon Jan  6 15:28:05 CET 2014 === python2.7: testing test_stream_salsa20.py
=== Mon Jan  6 15:28:06 CET 2014 === python2.7: testing test_stream_xsalsa20.py
=== Mon Jan  6 15:28:07 CET 2014 === python2.7: testing test_verify_16.py
=== Mon Jan  6 15:28:07 CET 2014 === python2.7: testing test_verify_32.py
=== Mon Jan  6 15:28:07 CET 2014 === python2.7: finished: /home/jan/python-tweetnacl-20140309/build/python2.7/tweetnacl.so