f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
56 lines
1 KiB
Nix
56 lines
1 KiB
Nix
{
|
|
lib,
|
|
bcrypt,
|
|
buildPythonPackage,
|
|
dvc-objects,
|
|
fetchPypi,
|
|
setuptools-scm,
|
|
sshfs,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dvc-ssh";
|
|
version = "4.1.1";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-lvC6oAXQR4u7s+11n6NgQExPc9yrq3JAmmXtuOw22tI=";
|
|
};
|
|
|
|
pythonRemoveDeps = [
|
|
# Prevent circular dependency
|
|
"dvc"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
bcrypt
|
|
dvc-objects
|
|
sshfs
|
|
];
|
|
|
|
# bcrypt is enabled for sshfs in nixpkgs
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg --replace "sshfs[bcrypt]" "sshfs"
|
|
'';
|
|
|
|
# Network access is needed for tests
|
|
doCheck = false;
|
|
|
|
# Circular dependency
|
|
# pythonImportsCheck = [
|
|
# "dvc_ssh"
|
|
# ];
|
|
|
|
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 ];
|
|
};
|
|
}
|