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