depot/third_party/nixpkgs/pkgs/development/python-modules/sshfs/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

64 lines
1.2 KiB
Nix

{ stdenv
, lib
, asyncssh
, bcrypt
, buildPythonPackage
, fetchFromGitHub
, fsspec
, mock-ssh-server
, pytest-asyncio
, pytestCheckHook
, setuptools
, setuptools-scm
}:
buildPythonPackage rec {
pname = "sshfs";
version = "2023.10.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "fsspec";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-6MueDHR+jZFDZg4zufEVhBtSwcgDd7KnW9gJp2hDu0A=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
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 ];
};
}