1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00

caffe: add python package requirements

This commit is contained in:
avitex 2019-06-17 22:16:13 +10:00 committed by Frederik Rietdijk
parent 955ed925e5
commit 44324bdd7c

View file

@ -73,9 +73,17 @@ stdenv.mkDerivation rec {
++ lib.optionals stdenv.isDarwin [ Accelerate CoreGraphics CoreVideo ]
;
propagatedBuildInputs = lib.optional pythonSupport python.pkgs.protobuf;
propagatedBuildInputs = lib.optionals pythonSupport (
# requirements.txt
let pp = python.pkgs; in ([
pp.numpy pp.scipy pp.scikitimage pp.h5py
pp.matplotlib pp.ipython pp.networkx pp.nose
pp.pandas pp.dateutil pp.protobuf pp.gflags
pp.pyyaml pp.pillow pp.six
] ++ lib.optional leveldbSupport pp.leveldb)
);
outputs = [ "bin" "out"];
outputs = [ "bin" "out" ];
propagatedBuildOutputs = []; # otherwise propagates out -> bin cycle
patches = [