Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 49 lines 1.3 kB view raw
1{ pkgs 2, buildPythonPackage 3, fetchPypi 4, cryptography 5, bcrypt 6, invoke 7, pynacl 8, pyasn1 9, pytest 10, pytest-relaxed 11, mock 12}: 13 14buildPythonPackage rec { 15 pname = "paramiko"; 16 version = "2.7.2"; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "7f36f4ba2c0d81d219f4595e35f70d56cc94f9ac40a6acdf51d6ca210ce65035"; 21 }; 22 23 checkInputs = [ invoke pytest mock pytest-relaxed ]; 24 propagatedBuildInputs = [ bcrypt cryptography pynacl pyasn1 ]; 25 26 __darwinAllowLocalNetworking = true; 27 28 # 2 sftp tests fail (skip for now) 29 # test_config relies on artifacts to be to downloaded 30 # RSA tests don't have valid keys 31 checkPhase = '' 32 pytest tests \ 33 --ignore=tests/test_sftp.py \ 34 --ignore=tests/test_config.py 35 ''; 36 37 meta = with pkgs.lib; { 38 homepage = "https://github.com/paramiko/paramiko/"; 39 description = "Native Python SSHv2 protocol library"; 40 license = licenses.lgpl21Plus; 41 42 longDescription = '' 43 This is a library for making SSH2 connections (client or server). 44 Emphasis is on using SSH2 as an alternative to SSL for making secure 45 connections between python scripts. All major ciphers and hash methods 46 are supported. SFTP client and server mode are both supported too. 47 ''; 48 }; 49}