diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2024-01-19 07:03:09 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2024-01-19 07:03:09 +0100 |
commit | 1b699df0595368b5801b7591d2c06736fe67389f (patch) | |
tree | 4d0a88c87531f1ec08ccb96005847d75bbadc94b /pkgs/development/python-modules/dvc/default.nix | |
parent | f0af16131eadfe395985b6284797ce801fba3281 (diff) |
python311Packages.dvc: disable on unsupported Python releases
Diffstat (limited to 'pkgs/development/python-modules/dvc/default.nix')
-rw-r--r-- | pkgs/development/python-modules/dvc/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/dvc/default.nix b/pkgs/development/python-modules/dvc/default.nix index a8ee0711a1524..cdc398c5540be 100644 --- a/pkgs/development/python-modules/dvc/default.nix +++ b/pkgs/development/python-modules/dvc/default.nix @@ -36,6 +36,7 @@ , pydot , pygtrie , pyparsing +, pythonOlder , requests , rich , ruamel-yaml @@ -59,6 +60,8 @@ buildPythonPackage rec { version = "3.40.1"; pyproject = true; + disabled = pythonOlder "3.8"; + src = fetchFromGitHub { owner = "iterative"; repo = "dvc"; @@ -72,7 +75,8 @@ buildPythonPackage rec { ]; postPatch = '' - substituteInPlace dvc/analytics.py --replace 'enabled = not os.getenv(DVC_NO_ANALYTICS)' 'enabled = False' + substituteInPlace dvc/analytics.py \ + --replace 'enabled = not os.getenv(DVC_NO_ANALYTICS)' 'enabled = False' substituteInPlace dvc/daemon.py \ --subst-var-by dvc "$out/bin/dcv" ''; |