3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/paramiko/default.nix

50 lines
1.2 KiB
Nix
Raw Normal View History

{ pkgs
, buildPythonPackage
, fetchPypi
, cryptography
, bcrypt
2019-12-20 17:00:37 +00:00
, invoke
, pynacl
, pyasn1
, pytest
, pytest-relaxed
, mock
}:
buildPythonPackage rec {
pname = "paramiko";
version = "2.7.2";
src = fetchPypi {
inherit pname version;
sha256 = "7f36f4ba2c0d81d219f4595e35f70d56cc94f9ac40a6acdf51d6ca210ce65035";
};
2019-12-20 17:00:37 +00:00
checkInputs = [ invoke pytest mock pytest-relaxed ];
propagatedBuildInputs = [ bcrypt cryptography pynacl pyasn1 ];
__darwinAllowLocalNetworking = true;
# 2 sftp tests fail (skip for now)
2019-12-20 17:00:37 +00:00
# test_config relies on artifacts to be to downloaded
# RSA tests don't have valid keys
checkPhase = ''
2019-12-20 17:00:37 +00:00
pytest tests \
--ignore=tests/test_sftp.py \
--ignore=tests/test_config.py
'';
meta = with pkgs.lib; {
homepage = "https://github.com/paramiko/paramiko/";
description = "Native Python SSHv2 protocol library";
license = licenses.lgpl21Plus;
longDescription = ''
This is a library for making SSH2 connections (client or server).
Emphasis is on using SSH2 as an alternative to SSL for making secure
connections between python scripts. All major ciphers and hash methods
are supported. SFTP client and server mode are both supported too.
'';
};
}