58 buildPythonPackage rec {
63 disabled = pythonOlder "3.8";
65 src = fetchFromGitHub {
68 rev = "refs/tags/${version}";
69 hash = "sha256-yNnOSYh4lCefTnIgNstsKaRbrPCgSiWEgKeF66KD66k=";
78 substituteInPlace dvc/analytics.py \
79 --replace-fail 'enabled = not os.getenv(DVC_NO_ANALYTICS)' 'enabled = False'
80 substituteInPlace dvc/daemon.py \
81 --subst-var-by dvc "$out/bin/dcv"
84 build-system = [ setuptools-scm ];
127 ++ lib.optionals enableGoogle optional-dependencies.gs
128 ++ lib.optionals enableAWS optional-dependencies.s3
129 ++ lib.optionals enableAzure optional-dependencies.azure
130 ++ lib.optionals enableSSH optional-dependencies.ssh
131 ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]
132 ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ];
134 optional-dependencies = {
135 azure = [ dvc-azure ];
136 gdrive = [ dvc-gdrive ];
143 # Tests require access to real cloud services
146 pythonImportsCheck = [
152 description = "Version Control System for Machine Learning Projects";
153 homepage = "https://dvc.org";
154 changelog = "https://github.com/iterative/dvc/releases/tag/${version}";
155 license = licenses.asl20;
156 maintainers = with maintainers; [