mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 10:23:29 +00:00
Merge pull request #28386 from ericsagnes/pkg-update/pytorch
pytorch: 0.1.12 -> 0.2.0
This commit is contained in:
commit
b7b815b45d
@ -2,15 +2,15 @@
|
|||||||
git, stdenv }:
|
git, stdenv }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "0.1.12";
|
version = "0.2.0";
|
||||||
pname = "pytorch";
|
pname = "pytorch";
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pytorch";
|
owner = "pytorch";
|
||||||
repo = "pytorch";
|
repo = "pytorch";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0r8mf4xya76gz83y5z3hfxh0rydkydafhipl8g7d0bfrgw961jy9";
|
sha256 = "112mp3r70d8f15dhxm6k7912b5i6c2q8hv9462s808y84grr2jdm";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
30
pkgs/development/python-modules/torchvision/default.nix
Normal file
30
pkgs/development/python-modules/torchvision/default.nix
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
{ buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, six
|
||||||
|
, numpy
|
||||||
|
, pillow
|
||||||
|
, pytorch
|
||||||
|
, lib }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
version = "0.1.9";
|
||||||
|
pname = "torchvision";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
format = "wheel";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
format = "wheel";
|
||||||
|
sha256 = "016rjfh9w1x4xpw15ryxsvq3j2li17nd3a7qslnf3241hc6vdcwf";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ six numpy pillow pytorch ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "PyTorch vision library";
|
||||||
|
homepage = http://pytorch.org/;
|
||||||
|
license = lib.licenses.bsd3;
|
||||||
|
maintainers = with lib.maintainers; [ ericsagnes ];
|
||||||
|
};
|
||||||
|
}
|
@ -27068,6 +27068,8 @@ EOF
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
torchvision = callPackage ../development/python-modules/torchvision { };
|
||||||
|
|
||||||
jenkinsapi = buildPythonPackage rec {
|
jenkinsapi = buildPythonPackage rec {
|
||||||
name = "jenkinsapi-${version}";
|
name = "jenkinsapi-${version}";
|
||||||
version = "0.2.32";
|
version = "0.2.32";
|
||||||
|
Loading…
Reference in New Issue
Block a user