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:
Jörg Thalheim 2023-03-10 11:37:38 +00:00 committed by GitHub
commit 345b995437
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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