depot/third_party/nixpkgs/pkgs/development/python-modules/dvc-ssh/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

45 lines
1 KiB
Nix

{ lib
, bcrypt
, buildPythonPackage
, dvc-objects
, fetchPypi
, pythonRelaxDepsHook
, setuptools-scm
, sshfs
}:
buildPythonPackage rec {
pname = "dvc-ssh";
version = "2.22.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-WHFfq0Cw17AWgmUlkZUOO6t6XcPYjLHUz4s0wcVYklc=";
};
# 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 ];
};
}