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