How did I upgrade `python-paramiko` from 2.4.2 to 2.6.0 in Debian 10?

I needed it to solved the issue «/usr/lib/python2.7/dist-packages/paramiko/ CryptographyDeprecationWarning: Support for unsafe construction of public numbers from encoded data will be removed in a future version» with Backupninja / Duplicity.


Step 1

I have added buster-backports to /etc/apt/sources.list:

deb buster-backports main

Step 2

aptitude -t buster-backports install "python-paramiko"