2023-08-22 20:05:09 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2023-03-15 16:39:30 +00:00
|
|
|
, asyncssh
|
|
|
|
, bcrypt
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fsspec
|
|
|
|
, mock-ssh-server
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2023-08-22 20:05:09 +00:00
|
|
|
, setuptools
|
2023-03-15 16:39:30 +00:00
|
|
|
, setuptools-scm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sshfs";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2023.10.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fsspec";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-6MueDHR+jZFDZg4zufEVhBtSwcgDd7KnW9gJp2hDu0A=";
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-08-22 20:05:09 +00:00
|
|
|
setuptools
|
2023-03-15 16:39:30 +00:00
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
asyncssh
|
|
|
|
bcrypt
|
|
|
|
fsspec
|
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
mock-ssh-server
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [
|
|
|
|
# test fails with sandbox enabled
|
|
|
|
"test_checksum"
|
|
|
|
];
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|