Skip to content

Instantly share code, notes, and snippets.

@BenSchZA
Created August 9, 2020 07:39
Show Gist options
  • Save BenSchZA/b914ad243fe17e88bb594657f7b0b4ce to your computer and use it in GitHub Desktop.
Save BenSchZA/b914ad243fe17e88bb594657f7b0b4ce to your computer and use it in GitHub Desktop.
Override Python nose package to solve `OSError: AF_UNIX path too long`
packageOverrides = self: super: {
# OSError: AF_UNIX path too long
nose = super.nose.overridePythonAttrs (oldAttrs: { !pkgs.stdenv.isDarwin; });
};
python = (pkgs.python36.override {inherit packageOverrides;}).withPackages (pkgs: with pkgs; [
numpy # One of these packages depend on nose
pandas
]);
@BenSchZA
Copy link
Author

BenSchZA commented Aug 9, 2020

The tests for the nose package are still run. Is the override applied to the packages in withPackages option?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment