7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
76 lines
1.7 KiB
Nix
76 lines
1.7 KiB
Nix
{
|
|
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.hostPlatform.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 ];
|
|
};
|
|
}
|