mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
Merge pull request #278528 from trofi/python3Packages.paddlepaddle-fix-src-eval
python3Packages.paddlepaddle: improve `src` eval error
This commit is contained in:
commit
ccea0bb46a
1 changed files with 3 additions and 1 deletions
|
@ -28,8 +28,10 @@ let
|
|||
version = "2.5.0";
|
||||
format = "wheel";
|
||||
pyShortVersion = "cp${builtins.replaceStrings ["."] [""] python.pythonVersion}";
|
||||
cpuOrGpu = if cudaSupport then "gpu" else "cpu";
|
||||
allHashAndPlatform = import ./binary-hashes.nix;
|
||||
hash = allHashAndPlatform."${stdenv.system}"."${if cudaSupport then "gpu" else "cpu"}"."${pyShortVersion}";
|
||||
hash = allHashAndPlatform."${stdenv.system}"."${cpuOrGpu}"."${pyShortVersion}"
|
||||
or (throw "${pname} has no binary-hashes.nix entry for '${stdenv.system}.${cpuOrGpu}.${pyShortVersion}' attribute");
|
||||
platform = allHashAndPlatform."${stdenv.system}".platform;
|
||||
src = fetchPypi ({
|
||||
inherit version format hash platform;
|
||||
|
|
Loading…
Reference in a new issue