diff options
| author | Sergei Trofimovich <slyich@gmail.com> | 2024-01-03 17:34:51 +0000 |
|---|---|---|
| committer | Sergei Trofimovich <slyich@gmail.com> | 2024-01-03 17:37:33 +0000 |
| commit | 9f2d6c03f57ce77b084a494fba0a82bb0a52df7b (patch) | |
| tree | 914f947d6f89a87fbad58c3163738a1f7f56df15 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | 97f2135e6a6a3b85e323e3ede61fb9cec134ba93 (diff) | |
python3Packages.paddlepaddle: improve `src` eval error
Before the change eval raised an unrecoverable failure due to missing
attribute dereference:
nix-repl> python3Packages.paddlepaddle.src
error:
… while evaluating the attribute 'paddlepaddle.src'
error: attribute 'cp311' missing
at pkgs/development/python-modules/paddlepaddle/default.nix:33:10:
32| allHashAndPlatform = import ./binary-hashes.nix;
33| hash = allHashAndPlatform."${stdenv.system}"."${cpuOrGpu}"."${pyShortVersion}"
| ^
34| ; #or (throw "${pname} has no binary-hashes.nix entry for '${stdenv.system}.${cpuOrGpu}.${pyShortVersion}' attribute");
Did you mean one of cp310 or cp39?
After the change the error is raised via catchable `throw`:
nix-repl> python3Packages.paddlepaddle.src
error:
… while evaluating the attribute 'paddlepaddle.src'
error: paddlepaddle has no binary-hashes.nix entry for 'x86_64-linux.cpu.cp311' attribute
This allows for slightly easier scan for syntactic errors over
`nixpkgs`.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions
