Merge pull request #220455 from Mic92/fix-eval
(python3.pkgs.ray, python3.pkgs.tensorflow): Fix evaluation of nativeBuildInputs in nix dependency graph
This commit is contained in:
commit
345b995437
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -57,7 +57,7 @@ in buildPythonPackage {
|
|||
platform = if stdenv.isDarwin then "mac" else "linux";
|
||||
unit = if cudaSupport then "gpu" else "cpu";
|
||||
key = "${platform}_py_${pyVerNoDot}_${unit}";
|
||||
in fetchurl packages.${key};
|
||||
in fetchurl (packages.${key} or {});
|
||||
|
||||
propagatedBuildInputs = [
|
||||
astunparse
|
||||
|
|
Loading…
Reference in a new issue