mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
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.
This commit is contained in:
parent
794f34657e
commit
fd613a8597
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user