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