1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 cython, 7 openssl, 8 zlib, 9 libssh2, 10}: 11 12buildPythonPackage rec { 13 pname = "ssh2-python"; 14 version = "1.1.2.post1"; 15 format = "setuptools"; 16 17 src = fetchFromGitHub { 18 owner = "ParallelSSH"; 19 repo = "ssh2-python"; 20 tag = version; 21 hash = "sha256-LHIj0lSAMJ+tUvIyMl0xT/i0N4U+HbiiD62WIXzboMU="; 22 }; 23 24 build-system = [ setuptools ]; 25 nativeBuildInputs = [ 26 cython 27 ]; 28 buildInputs = [ 29 openssl 30 zlib 31 libssh2 32 ]; 33 34 env = { 35 SYSTEM_LIBSSH2 = true; 36 }; 37 38 pythonImportsCheck = [ "ssh2" ]; 39 40 meta = { 41 description = "Python bindings for libssh2 C library"; 42 homepage = "https://github.com/ParallelSSH/ssh2-python"; 43 changelog = "https://github.com/ParallelSSH/ssh2-python/blob/${src.tag}/Changelog.rst"; 44 license = lib.licenses.lgpl21Only; 45 maintainers = with lib.maintainers; [ infinidoge ]; 46 }; 47}