python39Packages.tensorflow: simplify pname+version code

This commit is contained in:
Sandro Jäckel 2021-11-16 19:21:45 +01:00 committed by Sandro Jäckel
parent c46f9c42b8
commit 12371f83b1
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -42,13 +42,10 @@ assert ! (stdenv.isDarwin && cudaSupport);
let
packages = import ./binary-hashes.nix;
variant = if cudaSupport then "-gpu" else "";
pname = "tensorflow${variant}";
metadataPatch = ./relax-dependencies-metadata.patch;
patch = ./relax-dependencies.patch;
in buildPythonPackage {
inherit pname;
pname = "tensorflow" + lib.optionalString cudaSupport "-gpu";
inherit (packages) version;
format = "wheel";