python-paramiko: Add patch for ECDSA private keys.

This patch should be backwards-incompatible and is also submitted
upstream as paramiko/paramiko#218.

The main reason for this patch is that we need it for NixOS/nixops#124
in order to cope with NixOS/nixops@a2718b6, which makes ECDSA private
key the default for new deployments.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2013-10-02 11:40:53 +02:00
parent a5f8f6ace7
commit 58fdf34296
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

View File

@ -3988,6 +3988,14 @@ pythonPackages = modules // import ./python-packages-generated.nix {
md5 = "4187f77b1a5a313c899993930e30c321";
};
patches = pkgs.lib.singleton (fetchurl {
# See https://github.com/paramiko/paramiko/pull/218
name = "ecdsa-private-keys.patch";
url = "https://github.com/aszlig/paramiko/compare/"
+ "c73764a947...ad33bb186f.diff";
sha256 = "1f1dxnd2di7jh3knn4qfipa46f6f9rqdzmc1lncwb3sbd772r8fx";
});
propagatedBuildInputs = [ pycrypto ecdsa ];
checkPhase = "python test.py";