mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
8056f9250c
The setuptools-scm packages gained a setup hook, that sets it to the derivation version automatically, so setting it to that manually has become redundant. This also affects downstream consumers of setuptools-scm, like hatch-vcs or flit-scm.
63 lines
1.1 KiB
Nix
63 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 = "2023.10.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fsspec";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-6MueDHR+jZFDZg4zufEVhBtSwcgDd7KnW9gJp2hDu0A=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|