2017-08-19 09:47:23 +02:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, numpy
|
|
|
|
, pillow
|
|
|
|
, pytorch
|
2018-05-23 11:05:39 +02:00
|
|
|
, lib
|
|
|
|
}:
|
2017-08-19 09:47:23 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-05-23 11:05:39 +02:00
|
|
|
version = "0.2.1";
|
2017-08-19 09:47:23 +02:00
|
|
|
pname = "torchvision";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
format = "wheel";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
format = "wheel";
|
2018-05-23 11:05:39 +02:00
|
|
|
sha256 = "18gvdabkmzfjg47ns0lw38mf85ry28nq1mas5rzlwvb4l5zmw2ms";
|
2017-08-19 09:47:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six numpy pillow pytorch ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "PyTorch vision library";
|
2018-06-27 22:12:57 +02:00
|
|
|
homepage = https://pytorch.org/;
|
2017-08-19 09:47:23 +02:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ ericsagnes ];
|
|
|
|
};
|
|
|
|
}
|