python39Packages.tensorflow: simplify pname+version code
This commit is contained in:
parent
c46f9c42b8
commit
12371f83b1
1 changed files with 1 additions and 4 deletions
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue