Skip to content

Unable to override "disabled" attribute with overridePythonAttrs #48663

@peterhoeg

Description

@peterhoeg

Issue description

let
  py = python3.override {
    packageOverrides = self: super: {
      affinity = super.affinity.overridePythonAttrs (oldAttrs: rec {
        disabled = false;
        doCheck = false;
      });

This fails to evaluate as disabled = isPy3k; is set in the definition for affinity.

Cc @FRidh - any thoughts?

Technical details

  • system: "x86_64-linux"
  • host os: Linux 4.18.12, NixOS, 19.03.git.3a22e3007f6M (Koi)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.1.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: pythonPython is a high-level, general-purpose programming language.
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions