Hello, python-pykcs11 is no more present in Debian since wheezy released in 2013. https://packages.debian.org/search?keywords=python-pykcs11
Package python-pykcs11 * wheezy (oldoldstable) (python): PKCS#11 wrapper for Python 1.2.4-1: amd64 armel armhf i386 ia64 kfreebsd-amd64 kfreebsd-i386 mips mipsel powerpc s390 s390x sparc Since then, only the python3-pykcs11 package is provided https://packages.debian.org/search?keywords=python3-pykcs11 Package python3-pykcs11 * jessie (oldstable) (python): PKCS#11 wrapper for Python 1.3.0-1+b1: s390x 1.3.0-1: amd64 arm64 armel armhf i386 mips mipsel powerpc ppc64el * stretch (stable) (python): PKCS#11 wrapper for Python 1.3.3-1: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x * buster (testing) (python): PKCS#11 wrapper for Python 1.4.4-1: amd64 arm64 armel armhf i386 mips mips64el mipsel ppc64el s390x * sid (unstable) (python): PKCS#11 wrapper for Python 1.4.4-1: alpha amd64 arm64 armel armhf hppa hurd-i386 i386 kfreebsd-amd64 kfreebsd-i386 m68k mips mips64el mipsel powerpc powerpcspe ppc64 ppc64el s390x sh4 sparc64 x32 The Debian Python Policy says to package libraries for Python 3. And for Python 2 only if an application does not yet support Python 3. https://www.debian.org/doc/packaging-manuals/python-policy/python3.html Debian does not provide an application that depends on python-pykcs11. For all these reasons I do not plan to re-introduce python-pykcs11 in Debian. A possible patch to build python-pykcs11 (for Python 2) is attached (untested by me). Bye -- Dr. Ludovic Rousseau
diff --git a/debian/control b/debian/control index aa0fc26..307f6f7 100644 --- a/debian/control +++ b/debian/control @@ -2,12 +2,29 @@ Source: pykcs11 Priority: optional Maintainer: Ludovic Rousseau <[email protected]> Uploaders: Debian Python Modules Team <[email protected]> -Build-Depends: debhelper (>= 9), swig, python3-all-dev +Build-Depends: debhelper (>= 9), swig, python-all-dev, python3-all-dev Standards-Version: 3.9.8 Section: python Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/pykcs11.git Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/pykcs11.git Homepage: http://sourceforge.net/projects/pkcs11wrap/ +X-Python-Version: >= 2.7 +X-Python3-Version: >= 3.0 + +Package: python-pykcs11 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends} +Description: PKCS#11 wrapper for Python + PyKCS11 let you access to almost all PKCS#11 functions and data types using + any PKCS#11 library, such as the various modules supplied by smartcard + vendors. + . + The wrapper comes with 2 interfaces: a low level and very thin interface over + the original PKCS#11 API, generated using the SWIG compiler (designed for + library tests); and an high level interface that offers a simpler access (with + few limits) to the PKCS#11 APIs. + . + Keywords: pkcs11 Package: python3-pykcs11 Architecture: any diff --git a/debian/rules b/debian/rules index 2b7cf4e..f984c01 100755 --- a/debian/rules +++ b/debian/rules @@ -1,21 +1,27 @@ #!/usr/bin/make -f +build2vers := $(shell pyversions -sv) build3vers := $(shell py3versions -sv) %: - dh $@ --with python3 + dh $@ --with python2,python3 override_dh_auto_build: - set -e && for i in $(build3vers); do \ + set -e && for i in $(build2vers) $(build3vers); do \ cd src ; swig -c++ -python pykcs11.i ; cp pykcs11_wrap.cxx pykcs11_wrap.cpp ; cp LowLevel.py ../PyKCS11 ; \ cd .. ; python$$i setup.py build; \ done override_dh_auto_install: + set -e && for i in $(build2vers); do \ + python$$i setup.py install --install-layout=deb --root $(CURDIR)/debian/python-pykcs11; \ + done; \ set -e && for i in $(build3vers); do \ python$$i setup.py install --install-layout=deb --root $(CURDIR)/debian/python3-pykcs11; \ done override_dh_auto_clean: - python3 setup.py clean + set -e && for i in $(build2vers) $(build3vers); do \ + python$(echo $$i | cut -c -1) setup.py clean; \ + done

