1{
2 python3Packages,
3 runCommand,
4 attrName,
5}:
6
7runCommand "${python3Packages.${attrName}.name}-libstdcxx-test"
8 {
9 nativeBuildInputs = [
10 (python3Packages.python.withPackages (ps: [
11 (ps.${attrName}.override { enableCuda = true; })
12 ps.scikit-image
13 ]))
14 ];
15 }
16 ''
17 python << EOF
18 import cv2
19 from skimage.transform import pyramid_reduce
20 EOF
21 touch $out
22 ''