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