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 16 src = fetchFromGitHub { 17 owner = "ParallelSSH"; 18 repo = "ssh2-python"; 19 tag = version; 20 hash = "sha256-LHIj0lSAMJ+tUvIyMl0xT/i0N4U+HbiiD62WIXzboMU="; 21 }; 22 23 build-system = [ setuptools ]; 24 nativeBuildInputs = [ 25 cython 26 ]; 27 buildInputs = [ 28 openssl 29 zlib 30 libssh2 31 ]; 32 33 env = { 34 SYSTEM_LIBSSH2 = true; 35 }; 36 37 pythonImportsCheck = [ "ssh2" ]; 38 39 meta = { 40 description = "Python bindings for libssh2 C library"; 41 homepage = "https://github.com/ParallelSSH/ssh2-python"; 42 changelog = "https://github.com/ParallelSSH/ssh2-python/blob/${src.tag}/Changelog.rst"; 43 license = lib.licenses.lgpl21Only; 44 maintainers = with lib.maintainers; [ infinidoge ]; 45 }; 46}