2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, bcrypt
|
|
|
|
, buildPythonPackage
|
|
|
|
, dvc-objects
|
|
|
|
, fetchPypi
|
|
|
|
, pythonRelaxDepsHook
|
|
|
|
, setuptools-scm
|
|
|
|
, sshfs
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dvc-ssh";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "4.1.1";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-lvC6oAXQR4u7s+11n6NgQExPc9yrq3JAmmXtuOw22tI=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|