1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
{
lib,
stdenv,
asyncssh,
bcrypt,
buildPythonPackage,
fetchFromGitHub,
fsspec,
importlib-metadata,
mock-ssh-server,
pytest-asyncio,
pytestCheckHook,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "sshfs";
version = "2024.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "fsspec";
repo = "sshfs";
rev = "refs/tags/${version}";
hash = "sha256-8Vut/JDLmWrTys8aaIBRbaWlvGCg6edaXmMCFxjGhag=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
asyncssh
fsspec
];
optional-dependencies = {
bcrypt = [ asyncssh ] ++ asyncssh.optional-dependencies.bcrypt;
fido2 = [ asyncssh ] ++ asyncssh.optional-dependencies.fido2;
gssapi = [ asyncssh ] ++ asyncssh.optional-dependencies.gssapi;
libnacl = [ asyncssh ] ++ asyncssh.optional-dependencies.libnacl;
pkcs11 = [ asyncssh ] ++ asyncssh.optional-dependencies.python-pkcs11;
pyopenssl = [ asyncssh ] ++ asyncssh.optional-dependencies.pyopenssl;
};
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [
importlib-metadata
mock-ssh-server
pytest-asyncio
pytestCheckHook
];
disabledTests =
[
# Test requires network access
"test_config_expansions"
]
++ lib.optionals stdenv.isDarwin [
# Test fails with sandbox enabled
"test_checksum"
];
pythonImportsCheck = [ "sshfs" ];
meta = with lib; {
description = "SSH/SFTP implementation for fsspec";
homepage = "https://github.com/fsspec/sshfs/";
changelog = "https://github.com/fsspec/sshfs/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ melling ];
};
}
|