Describe the bug
nix profile install nixpkgs#bats fails with the error message:
pyyaml-6.0 not supported for interpreter python2.7
Steps To Reproduce
Steps to reproduce the behavior:
nix profile install nixpkgs#bats
Expected behavior
install bats
Screenshots
nix profile install nixpkgs#bats --show-trace
error: pyyaml-6.0 not supported for interpreter python2.7
… while evaluating anonymous lambda
at /nix/store/8dy3nx5wi65gg4ns0h80pw2v1llghx6h-source/pkgs/development/interpreters/python/mk-python-derivation.nix:31:1:
30|
31| { name ? "${attrs.pname}-${attrs.version}"
| ^
32|
… from call site
at /nix/store/8dy3nx5wi65gg4ns0h80pw2v1llghx6h-source/lib/customisation.nix:72:16:
71| let
72| result = f origArgs;
| ^
73|
… while evaluating 'makeOverridable'
at /nix/store/8dy3nx5wi65gg4ns0h80pw2v1llghx6h-source/lib/customisation.nix:70:24:
69| */
70| makeOverridable = f: origArgs:
| ^
71| let
… from call site
at /nix/store/8dy3nx5wi65gg4ns0h80pw2v1llghx6h-source/pkgs/development/interpreters/python/python-packages-base.nix:19:12:
18| let
19| ff = f origArgs;
| ^
20| overrideWith = newArgs: origArgs // (if pkgs.lib.isFunction newArgs then newArgs origArgs else newArgs);
… while evaluating 'makeOverridablePythonPackage'
at /nix/store/8dy3nx5wi65gg4ns0h80pw2v1llghx6h-source/pkgs/development/interpreters/python/python-packages-base.nix:17:37:
16| # This function introduces `overridePythonAttrs` and it overrides the call to `buildPythonPackage`.
17| makeOverridablePythonPackage = f: origArgs:
| ^
18| let
… from call site
at /nix/store/8dy3nx5wi65gg4ns0h80pw2v1llghx6h-source/pkgs/development/python-modules/pyyaml/default.nix:10:1:
9|
10| buildPythonPackage rec {
| ^
11| pname = "pyyaml";
… while evaluating anonymous lambda
at /nix/store/8dy3nx5wi65gg4ns0h80pw2v1llghx6h-source/pkgs/development/python-modules/pyyaml/default.nix:1:1:
1| { lib
| ^
2| , buildPythonPackage
… from call site
at /nix/store/8dy3nx5wi65gg4ns0h80pw2v1llghx6h-source/lib/customisation.nix:72:16:
71| let
72| result = f origArgs;
| ^
73|
… while evaluating 'makeOverridable'
at /nix/store/8dy3nx5wi65gg4ns0h80pw2v1llghx6h-source/lib/customisation.nix:70:24:
69| */
70| makeOverridable = f: origArgs:
| ^
71| let
… from call site
at /nix/store/8dy3nx5wi65gg4ns0h80pw2v1llghx6h-source/lib/customisation.nix:171:34:
170|
171| in if missingArgs == [] then makeOverridable f allArgs else throw error;
| ^
172|
… while evaluating 'callPackageWith'
at /nix/store/8dy3nx5wi65gg4ns0h80pw2v1llghx6h-source/lib/customisation.nix:120:35:
119| */
120| callPackageWith = autoArgs: fn: args:
| ^
121| let
… from call site
at /nix/store/8dy3nx5wi65gg4ns0h80pw2v1llghx6h-source/pkgs/top-level/python-packages.nix:9475:12:
9474|
9475| pyyaml = callPackage ../development/python-modules/pyyaml { };
| ^
9476|
… while evaluating anonymous lambda
at /nix/store/8dy3nx5wi65gg4ns0h80pw2v1llghx6h-source/pkgs/stdenv/generic/make-derivation.nix:212:13:
211| (map (drv: drv.__spliced.buildBuild or drv) (checkDependencyList "depsBuildBuild" depsBuildBuild))
212| (map (drv: drv.__spliced.buildHost or drv) (checkDependencyList "nativeBuildInputs" nativeBuildInputs
| ^
213| ++ lib.optional separateDebugInfo' ../../build-support/setup-hooks/separate-debug-info.sh
… from call site
… while evaluating 'getOutput'
at /nix/store/8dy3nx5wi65gg4ns0h80pw2v1llghx6h-source/lib/attrsets.nix:825:23:
824| */
825| getOutput = output: pkg:
| ^
826| if ! pkg ? outputSpecified || ! pkg.outputSpecified
… from call site
… while evaluating the attribute 'nativeBuildInputs' of the derivation 'python2.7-configargparse-1.5.3'
at /nix/store/8dy3nx5wi65gg4ns0h80pw2v1llghx6h-source/pkgs/stdenv/generic/make-derivation.nix:270:7:
269| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
270| name =
| ^
271| let
… while evaluating the attribute 'out.outPath'
at /nix/store/8dy3nx5wi65gg4ns0h80pw2v1llghx6h-source/lib/customisation.nix:207:13:
206| drvPath = assert condition; drv.${outputName}.drvPath;
207| outPath = assert condition; drv.${outputName}.outPath;
| ^
208| };
… while evaluating the attribute 'propagatedBuildInputs' of the derivation 'resholve-0.8.3'
at /nix/store/8dy3nx5wi65gg4ns0h80pw2v1llghx6h-source/pkgs/stdenv/generic/make-derivation.nix:270:7:
269| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
270| name =
| ^
271| let
… while evaluating the attribute 'out.outPath'
at /nix/store/8dy3nx5wi65gg4ns0h80pw2v1llghx6h-source/lib/customisation.nix:207:13:
206| drvPath = assert condition; drv.${outputName}.drvPath;
207| outPath = assert condition; drv.${outputName}.outPath;
| ^
208| };
… while evaluating the attribute 'buildInputs' of the derivation 'bats-1.8.2'
at /nix/store/8dy3nx5wi65gg4ns0h80pw2v1llghx6h-source/pkgs/stdenv/generic/make-derivation.nix:270:7:
269| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
270| name =
| ^
271| let
… while evaluating the attribute 'drvPath'
at /nix/store/8dy3nx5wi65gg4ns0h80pw2v1llghx6h-source/lib/customisation.nix:213:7:
212| in commonAttrs // {
213| drvPath = assert condition; drv.drvPath;
| ^
214| outPath = assert condition; drv.outPath;
Additional context
upgrading bats fails with the same error (assuming one had installed it before)
Notify maintainers
n.a.
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 6.0.11-arch1-1, Arch Linux, noversion, rolling`
- multi-user?: `no`
- sandbox: `yes`
- version: `nix-env (Nix) 2.11.1`
- channels(mkhl): `"nixpkgs"`
- nixpkgs: `/home/mkhl/.nix-defexpr/channels/nixpkgs`
Describe the bug
nix profile install nixpkgs#batsfails with the error message:Steps To Reproduce
Steps to reproduce the behavior:
nix profile install nixpkgs#batsExpected behavior
install bats
Screenshots
nix profile install nixpkgs#bats --show-trace
Additional context
upgrading bats fails with the same error (assuming one had installed it before)
Notify maintainers
n.a.
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"and paste the result.