Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

poetry2nix is now maintained out-of-tree with recent nixpkgs #441

Closed
avdv opened this issue Nov 7, 2023 · 0 comments · Fixed by #415
Closed

poetry2nix is now maintained out-of-tree with recent nixpkgs #441

avdv opened this issue Nov 7, 2023 · 0 comments · Fixed by #415

Comments

@avdv
Copy link
Member

avdv commented Nov 7, 2023

Describe the bug
In #415, which upgraded the nixpkgs' revision:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/6500b4580c2a1f3d0f980d32d285739d8e156d92' (2023-09-25)
  → 'github:NixOS/nixpkgs/fa804edfb7869c9fb230e174182a8a1a7e512c40' (2023-11-02)

there is this CI failure:

 error:
         … while calling the 'derivationStrict' builtin
  
           at /builtin/derivation.nix:9:12: (source not available)
  
         … while evaluating derivation 'python-requirements'
           whose name attribute is located at /nix/store/a56i1y5js340dn1w9r767a8jp34k31n4-source/pkgs/stdenv/generic/make-derivation.nix:311:7
  
         … while evaluating attribute 'text' of derivation 'python-requirements'
  
           at /nix/store/a56i1y5js340dn1w9r767a8jp34k31n4-source/pkgs/build-support/trivial-builders/default.nix:148:16:
  
            147|     runCommand name
            148|       { inherit text executable checkPhase allowSubstitutes preferLocalBuild;
               |                ^
            149|         passAsFile = [ "text" ];
  
         … while calling anonymous lambda
  
           at /nix/store/a56i1y5js340dn1w9r767a8jp34k31n4-source/pkgs/top-level/aliases.nix:44:22:
  
             43|   mapAliases = aliases:
             44|     lib.mapAttrs (n: alias:
               |                      ^
             45|       removeDistribute
  
         … from call site
  
           at /nix/store/a56i1y5js340dn1w9r767a8jp34k31n4-source/pkgs/top-level/aliases.nix:45:7:
  
             44|     lib.mapAttrs (n: alias:
             45|       removeDistribute
               |       ^
             46|         (removeRecurseForDerivations
  
         … while calling 'removeDistribute'
  
           at /nix/store/a56i1y5js340dn1w9r767a8jp34k31n4-source/pkgs/top-level/aliases.nix:32:22:
  
             31|   # sets from building on Hydra.
             32|   removeDistribute = alias: with lib;
               |                      ^
             33|     if isDerivation alias then
  
         … from call site
  
           at /nix/store/a56i1y5js340dn1w9r767a8jp34k31n4-source/pkgs/top-level/aliases.nix:33:8:
  
             32|   removeDistribute = alias: with lib;
             33|     if isDerivation alias then
               |        ^
             34|       dontDistribute alias
  
         … while calling 'isDerivation'
  
           at /nix/store/a56i1y5js340dn1w9r767a8jp34k31n4-source/lib/attrsets.nix:670:5:
  
            669|     # Value to check.
            670|     value: value.type or null == "derivation";
               |     ^
            671|
  
         … from call site
  
           at /nix/store/a56i1y5js340dn1w9r767a8jp34k31n4-source/pkgs/top-level/aliases.nix:46:10:
  
             45|       removeDistribute
             46|         (removeRecurseForDerivations
               |          ^
             47|           (checkInPkgs n alias)))
  
         … while calling 'removeRecurseForDerivations'
  
           at /nix/store/a56i1y5js340dn1w9r767a8jp34k31n4-source/pkgs/top-level/aliases.nix:25:33:
  
             24|   # to appear while listing all the packages available.
             25|   removeRecurseForDerivations = alias: with lib;
               |                                 ^
             26|     if alias.recurseForDerivations or false
  
         … from call site
  
           at /nix/store/a56i1y5js340dn1w9r767a8jp34k31n4-source/pkgs/top-level/aliases.nix:47:12:
  
             46|         (removeRecurseForDerivations
             47|           (checkInPkgs n alias)))
               |            ^
             48|       aliases;
  
         … while calling 'checkInPkgs'
  
           at /nix/store/a56i1y5js340dn1w9r767a8jp34k31n4-source/pkgs/top-level/aliases.nix:38:20:
  
             37|   # Make sure that we are not shadowing something from all-packages.nix.
             38|   checkInPkgs = n: alias:
               |                    ^
             39|     if builtins.hasAttr n super
  
         error: poetry2nix is now maintained out-of-tree. Please use https://github.com/nix-community/poetry2nix/

To Reproduce

  1. run nix flake update
  2. cd testing/python
  3. bazel test

Expected behavior
We should be able to use poetry2nix. But it seems we have to get it from a different source now.

Environment

  • OS name + version: Github Actions / ubuntu + macos
  • Version of the code: 89ccb0c

Additional context

https://github.com/nix-community/poetry2nix/

@avdv avdv added the type: bug label Nov 7, 2023
avdv added a commit that referenced this issue Nov 8, 2023
@avdv avdv linked a pull request Nov 8, 2023 that will close this issue
@avdv avdv mentioned this issue Nov 8, 2023
avdv added a commit that referenced this issue Nov 8, 2023
avdv added a commit that referenced this issue Nov 15, 2023
@mergify mergify bot closed this as completed in #415 Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant