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

Build failure: pandas-stubs #369469

Open
DockterTeagle opened this issue Dec 30, 2024 · 1 comment
Open

Build failure: pandas-stubs #369469

DockterTeagle opened this issue Dec 30, 2024 · 1 comment
Labels
0.kind: build failure A package fails to build

Comments

@DockterTeagle
Copy link

Steps To Reproduce

  1. build python313Packages.pandas-stubs

Build log

Build Log

error:
       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:34:12:
           33|
           34|   strict = derivationStrict drvAttrs;
             |            ^
           35|

       … while evaluating derivation 'nix-shell'
         whose name attribute is located at /nix/store/8vz84mqgnm1gz5yk7hgnnb5gir5hjxas-source/pkgs/stdenv/generic/make-derivation.nix:375:7

       … while evaluating attribute 'nativeBuildInputs' of derivation 'nix-shell'
         at /nix/store/8vz84mqgnm1gz5yk7hgnnb5gir5hjxas-source/pkgs/stdenv/generic/make-derivation.nix:419:7:
          418|       depsBuildBuild              = elemAt (elemAt dependencies 0) 0;
          419|       nativeBuildInputs           = elemAt (elemAt dependencies 0) 1;
             |       ^
          420|       depsBuildTarget             = elemAt (elemAt dependencies 0) 2;

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

       error: future-1.0.0 not supported for interpreter python3.13

Additional context

This failure is depsite the fact that it is listed as a python313Package on the website nixpkgs

Metadata

  • system: "x86_64-linux"
  • host os: Linux 6.12.5, NixOS, 25.05 (Warbler), 25.05.20241219.d70bd19
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.11
  • channels(root): "nixos-24.05"
  • nixpkgs: /nix/store/8fwsiv0hd7nw1brkvka0jf1frk3m7qkr-source

Notify maintainers

@malob

Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

@DockterTeagle DockterTeagle added the 0.kind: build failure A package fails to build label Dec 30, 2024
@DockterTeagle
Copy link
Author

I am using the latest nixos unstable for this one, using a direnv and flake, I say this as I think that the nixpkgs version could be wrong that is reported in the metadata. here is teh flake.nix I am using:

{
  description = "";
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    flake-parts.url = "github:hercules-ci/flake-parts";
    pre-commit-hooks.url = "github:cachix/git-hooks.nix";
    # dream2nix.url = "github:nix-community/dream2nix";
  };
  outputs =
    inputs@{
      flake-parts,
      ...
    }:
    flake-parts.lib.mkFlake { inherit inputs; } {
      systems = [
        "x86_64-linux"
        "x86_64-darwin"
        "aarch64-darwin"
      ];
      perSystem =
        {
          config,
          self',
          inputs',
          pkgs,
          system,
          ...
        }:
        {
          formatter = pkgs.nixfmt-rfc-style;
          checks = {
            # pre-commit-check = inputs'.pre-commit-hooks.lib.run {
            pre-commit-check = inputs.pre-commit-hooks.lib.${system}.run {
              src = ./.;
              hooks = {
                nixfmt-rfc-style.enable = true;
                ruff.enable = true;
                ruff-format.enable = true;
              };
            };
          };
          devShells.default = pkgs.mkShell {
            inherit (self'.checks.pre-commit-check) shellHook;
            packages = with pkgs; [
              self'.checks.pre-commit-check.enabledPackages
              python313Packages.numpy_2
              python313Packages.pandas
              python313Packages.pandas-stubs
              python313Packages.matplotlib
              python313Packages.seaborn
              python313Packages.sympy
              python313Packages.openpyxl
              python313Packages.debugpy
              python313Packages.python-lsp-jsonrpc
              python313Packages.mypy
              python313Full
              python313Packages.pytest
              pyright
              ruff
              uv
            ];
          };
        };
    };
}
#

ik that uv is kind of redundant on nix was gonna remove it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

No branches or pull requests

1 participant