depot/third_party/nixpkgs/pkgs/development/python-modules/sshfs/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

61 lines
1.1 KiB
Nix

{
stdenv,
lib,
asyncssh,
bcrypt,
buildPythonPackage,
fetchFromGitHub,
fsspec,
mock-ssh-server,
pytest-asyncio,
pytestCheckHook,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "sshfs";
version = "2024.4.1";
pyproject = true;
src = fetchFromGitHub {
owner = "fsspec";
repo = "sshfs";
rev = "refs/tags/${version}";
hash = "sha256-qkEojf/3YBMoYbRt0Q93MJYXyL9AWR24AEe3/zdn58U=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
asyncssh
bcrypt
fsspec
];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [
mock-ssh-server
pytest-asyncio
pytestCheckHook
];
disabledTests = 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 ];
};
}