nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at haskell-updates 63 lines 1.1 kB view raw
1{ 2 lib, 3 bcrypt, 4 buildPythonPackage, 5 dvc-objects, 6 fetchPypi, 7 setuptools, 8 setuptools-scm, 9 sshfs, 10}: 11 12buildPythonPackage (finalAttrs: { 13 pname = "dvc-ssh"; 14 version = "4.2.2"; 15 pyproject = true; 16 17 src = fetchPypi { 18 pname = "dvc_ssh"; 19 inherit (finalAttrs) version; 20 hash = "sha256-T6yTLF8ivZRE2H1Oez/9bAnMjlbZjrPG1LRDAdNTUBc="; 21 }; 22 23 pythonRemoveDeps = [ 24 # Prevent circular dependency 25 "dvc" 26 ]; 27 28 build-system = [ 29 setuptools 30 setuptools-scm 31 ]; 32 33 dependencies = [ 34 bcrypt 35 dvc-objects 36 sshfs 37 ]; 38 39 optional-dependencies = { 40 gssapi = [ sshfs ]; 41 }; 42 43 # bcrypt is enabled for sshfs in nixpkgs 44 postPatch = '' 45 substituteInPlace setup.cfg --replace "sshfs[bcrypt]" "sshfs" 46 ''; 47 48 # Network access is needed for tests 49 doCheck = false; 50 51 # Circular dependency 52 # pythonImportsCheck = [ 53 # "dvc_ssh" 54 # ]; 55 56 meta = { 57 description = "SSH plugin for dvc"; 58 homepage = "https://pypi.org/project/dvc-ssh/"; 59 changelog = "https://github.com/iterative/dvc-ssh/releases/tag/${finalAttrs.version}"; 60 license = lib.licenses.asl20; 61 maintainers = [ ]; 62 }; 63})