Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, asyncssh 3, bcrypt 4, buildPythonPackage 5, fetchFromGitHub 6, fsspec 7, mock-ssh-server 8, pytest-asyncio 9, pytestCheckHook 10, setuptools-scm 11}: 12 13buildPythonPackage rec { 14 pname = "sshfs"; 15 version = "2023.4.1"; 16 17 src = fetchFromGitHub { 18 owner = "fsspec"; 19 repo = pname; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-qoOqKXtmavKgfbg6bBEeZb+n1RVyZSxqhKIQsToxDUU="; 22 }; 23 24 SETUPTOOLS_SCM_PRETEND_VERSION = version; 25 26 nativeBuildInputs = [ 27 setuptools-scm 28 ]; 29 30 propagatedBuildInputs = [ 31 asyncssh 32 bcrypt 33 fsspec 34 ]; 35 36 nativeCheckInputs = [ 37 mock-ssh-server 38 pytest-asyncio 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ 43 "sshfs" 44 ]; 45 46 meta = with lib; { 47 description = "SSH/SFTP implementation for fsspec"; 48 homepage = "https://github.com/fsspec/sshfs/"; 49 changelog = "https://github.com/fsspec/sshfs/releases/tag/${version}"; 50 license = licenses.asl20; 51 maintainers = with maintainers; [ melling ]; 52 }; 53}