2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, bcrypt
|
|
|
|
, buildPythonPackage
|
|
|
|
, dvc-objects
|
|
|
|
, fetchPypi
|
|
|
|
, pythonRelaxDepsHook
|
|
|
|
, setuptools-scm
|
|
|
|
, sshfs
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dvc-ssh";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "2.22.2";
|
2023-05-24 13:37:59 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-eJwNCZvdBqYKEbX4On3pGm2bzCvH9G7rdsgeN7XPJB0=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Prevent circular dependency
|
|
|
|
pythonRemoveDeps = [ "dvc" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools-scm pythonRelaxDepsHook ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|