Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 891 B view raw
1{ stdenv, buildPythonPackage 2, fetchPypi, isPy3k, linuxPackages, gcc5 3, fastrlock, numpy, six, wheel, pytest, mock 4, cudatoolkit, cudnn, nccl 5}: 6 7buildPythonPackage rec { 8 pname = "cupy"; 9 version = "5.2.0"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "664acff0e1094f0135acca8899318d300258b704e049b1ef0c59154912da53b2"; 14 }; 15 16 checkInputs = [ 17 pytest 18 mock 19 ]; 20 21 nativeBuildInputs = [ 22 gcc5 23 ]; 24 25 propagatedBuildInputs = [ 26 cudatoolkit 27 cudnn 28 linuxPackages.nvidia_x11 29 nccl 30 fastrlock 31 numpy 32 six 33 wheel 34 ]; 35 36 # In python3, test was failed... 37 doCheck = !isPy3k; 38 39 meta = with stdenv.lib; { 40 description = "A NumPy-compatible matrix library accelerated by CUDA"; 41 homepage = https://cupy.chainer.org/; 42 license = licenses.mit; 43 platforms = [ "x86_64-linux" ]; 44 maintainers = with maintainers; [ hyphon81 ]; 45 }; 46}