nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 47 lines 915 B view raw
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.2.0.post1"; 15 format = "setuptools"; 16 17 src = fetchFromGitHub { 18 owner = "ParallelSSH"; 19 repo = "ssh2-python"; 20 tag = version; 21 hash = "sha256-GhkVie+UPjM1C1Jb3/ef59kuJRYmIkauTCaoksqu1LM="; 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}