11 pyVersion = "${lib.versions.major python.version}${lib.versions.minor python.version}";
13 buildPythonPackage rec {
15 version = lib.optionalString (cudaPackages ? tensorrt) cudaPackages.tensorrt.version;
17 src = cudaPackages.tensorrt.src;
20 # We unpack the wheel ourselves because of the odd packaging.
21 dontUseWheelUnpack = true;
31 tar --strip-components=2 -xf "$src" --directory=dist \
32 "TensorRT-${version}/python/tensorrt-${version}-cp${pyVersion}-none-linux_x86_64.whl"
42 pythonImportsCheck = [
47 description = "Python bindings for TensorRT, a high-performance deep learning interface";
48 homepage = "https://developer.nvidia.com/tensorrt";
49 license = licenses.unfree;
50 platforms = [ "x86_64-linux" ];
51 maintainers = with maintainers; [ aidalgol ];
53 !(cudaPackages ? tensorrt)
54 || !(cudaPackages ? cudnn);