python3Packages.dbt-adapters: fix the val

Without the change the eval fails on `staging-next` as:

    $ nix build --no-link -f. python3Packages.dbt-adapters
    error:
       … while evaluating a branch condition
         at pkgs/development/interpreters/python/passthrufun.nix:27:9:
           26|       func = name: value:
           27|         if lib.isDerivation value then
             |         ^
           28|           lib.extendDerivation (valid value || throw "${name} should use `buildPythonPackage` or `toPythonModule` if it is to be part of the Python packages set.") {} value

       … while evaluating a branch condition
         at /home/slyfox/dev/git/nixpkgs-staging-next/lib/customisation.nix:263:8:
          262|
          263|     in if missingArgs == {}
             |        ^
          264|        then makeOverridable f allArgs

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: attribute 'pythonRelaxDeps' already defined at pkgs/development/python-modules/dbt-adapters/default.nix:30:3
       at pkgs/development/python-modules/dbt-adapters/default.nix:34:3:
           33|
           34|   pythonRelaxDeps = [ "protobuf" ];
             |   ^
           35|
This commit is contained in:
Sergei Trofimovich 2024-10-20 19:08:04 +01:00
parent 3a28da73ba
commit 068bac79b8

View File

@ -27,8 +27,6 @@ buildPythonPackage rec {
hash = "sha256-I3A3rIMpT+MAq+ebid9RMr6I3W1l4ir78UmfeEr5U3U=";
};
pythonRelaxDeps = [ "protobuf" ];
build-system = [ hatchling ];
pythonRelaxDeps = [ "protobuf" ];