2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, bcrypt
|
|
|
|
, buildPythonPackage
|
|
|
|
, dvc-objects
|
|
|
|
, fetchPypi
|
|
|
|
, pythonRelaxDepsHook
|
|
|
|
, setuptools-scm
|
|
|
|
, sshfs
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dvc-ssh";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "3.0.0";
|
|
|
|
pyproject = true;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-Xlbav0mk+8/VTgS1MCide76QW8WhlflzNXQ7YM4N4iw=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
pythonRemoveDeps = [
|
|
|
|
# Prevent circular dependency
|
|
|
|
"dvc"
|
|
|
|
];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
bcrypt
|
|
|
|
dvc-objects
|
|
|
|
sshfs
|
|
|
|
];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
# bcrypt is enabled for sshfs in nixpkgs
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg --replace "sshfs[bcrypt]" "sshfs"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Network access is needed for tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
# Circular dependency
|
|
|
|
# pythonImportsCheck = [
|
|
|
|
# "dvc_ssh"
|
|
|
|
# ];
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "ssh plugin for dvc";
|
|
|
|
homepage = "https://pypi.org/project/dvc-ssh/${version}";
|
|
|
|
changelog = "https://github.com/iterative/dvc-ssh/releases/tag/${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ melling ];
|
|
|
|
};
|
|
|
|
}
|