Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / dvc-ssh / default.nix
blob3a1ef111c0cd5164a84d5f794003613bce381970
1 { lib
2 , bcrypt
3 , buildPythonPackage
4 , dvc-objects
5 , fetchPypi
6 , pythonRelaxDepsHook
7 , setuptools-scm
8 , sshfs
9 }:
11 buildPythonPackage rec {
12   pname = "dvc-ssh";
13   version = "4.1.1";
14   pyproject = true;
16   src = fetchPypi {
17     inherit pname version;
18     hash = "sha256-lvC6oAXQR4u7s+11n6NgQExPc9yrq3JAmmXtuOw22tI=";
19   };
21   pythonRemoveDeps = [
22     # Prevent circular dependency
23     "dvc"
24   ];
26   nativeBuildInputs = [
27     setuptools-scm
28     pythonRelaxDepsHook
29   ];
31   propagatedBuildInputs = [
32     bcrypt
33     dvc-objects
34     sshfs
35   ];
37   # bcrypt is enabled for sshfs in nixpkgs
38   postPatch = ''
39     substituteInPlace setup.cfg --replace "sshfs[bcrypt]" "sshfs"
40   '';
42   # Network access is needed for tests
43   doCheck = false;
45   # Circular dependency
46   # pythonImportsCheck = [
47   #  "dvc_ssh"
48   # ];
50   meta = with lib; {
51     description = "ssh plugin for dvc";
52     homepage = "https://pypi.org/project/dvc-ssh/${version}";
53     changelog = "https://github.com/iterative/dvc-ssh/releases/tag/${version}";
54     license = licenses.asl20;
55     maintainers = with maintainers; [ melling ];
56   };