Commit fd613a85 authored by Jörg Thalheim's avatar Jörg Thalheim
Browse files

python3.pkgs.ray: fix evaluation when generating nix dependency graph

Due to some oddities in the language `builtins.tryEval` fails to
catch some instances in certain edge cases. While it would be nice
to have them fixed in nix itself for now it seems way easier to
just remove these two instances.

This fixes evaluating nativeBuildInputs in
https://github.com/tweag/nixpkgs-graph/

Retrieve this information from nixpkgs is quite complex but having it
would enable a lot of interesting use cases.
parent 794f3465
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ buildPythonPackage rec {
  src =
    let
      pyShortVersion = "cp${builtins.replaceStrings ["."] [""] python.pythonVersion}";
      binary-hash = (import ./binary-hashes.nix)."${pyShortVersion}";
      binary-hash = (import ./binary-hashes.nix)."${pyShortVersion}" or {};
    in
    fetchPypi ({
      inherit pname version format;