`poetry2nix` is now maintained out-of-tree with recent nixpkgs
avdv opened this issue · 0 comments
avdv commented
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
- run
nix flake update
cd testing/python
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