I’m trying to create a python environment with PyMC installed. The problem is that somewhere down the dependency tree, it tries to include tensorflow-probability which is currently broken.
After some digging I found out the offending dependency chain is pymc > pytensor > tensorflow-probability and tensorflow-probability is only a check dependency! [1]
I don’t necessarily need to run the tests and indeed setting doInstallCheck = false seems to solve the issue:
nix-repl> pkgs.python3Packages.pytensor
[...]
error: Package ‘python3.13-tensorflow-probability-0.25.0’ in /nix/store/hgdvk97xaahxgmxjb3h8svx9zrmn508c-nixos-25.11/nixos/pkgs/development/python-modules/tensorflow-probability/default.nix:144 is marked as broken, refusing to evaluate.
nix-repl> pkgs.python3Packages.pytensor.overrideAttrs { doInstallCheck = false; }
«derivation /nix/store/7vqjhca7lczhs733r9bgd8sla5jbmvhj-python3.13-pytensor-2.35.1.drv»
However I can’t seem to disable install checks for my shell.nix. After consulting Overriding Python packages, this is one of my best guesses on how it could work:
Thank you! Seems like I made a bad uniqueness assumption. I will keep --show-trace in mind for the future. After some more tinkering, I now blocked the path to tensorflow-probability with