git.iko.soy/typeable/nixpkgs
on master help sign in
torchvision-bin: 0.11.1 -> 0.12.0
commitb95b9f7cf4a83b0a1883f3c4dd5402a551570283 authorRehno Lindeque <errantkid@gmail.com> dateTue 22 Mar 2022, 10:47 (5 years ago) parentad2e516
3 files changed+66−16
pkgs/development/python-modules/torchvision/bin.nix+3−2 pkgs/development/python-modules/torchvision/binary-hashes.nix+50−10 pkgs/development/python-modules/torchvision/prefetch.sh+13−4
pkgs/development/python-modules/torchvision/bin.nix+3−2
@@ -5,6 +5,7 @@
55, isPy37
66, isPy38
77, isPy39
8+, isPy310
89, patchelf
910, pillow
1011, python
@@ -15,7 +16,7 @@ let
1516 pyVerNoDot = builtins.replaceStrings [ "." ] [ "" ] python.pythonVersion;
1617 srcs = import ./binary-hashes.nix version;
1718 unsupported = throw "Unsupported system";
18− version = "0.11.1";
19+ version = "0.12.0";
1920in buildPythonPackage {
2021 inherit version;
2122
@@ -25,7 +26,7 @@ in buildPythonPackage {
2526
2627 src = fetchurl srcs."${stdenv.system}-${pyVerNoDot}" or unsupported;
2728
28− disabled = !(isPy37 || isPy38 || isPy39);
29+ disabled = !(isPy37 || isPy38 || isPy39 || isPy310);
2930
3031 nativeBuildInputs = [
3132 patchelf
pkgs/development/python-modules/torchvision/binary-hashes.nix+50−10
@@ -6,21 +6,61 @@
66# To add a new version, run "prefetch.sh 'new-version'" to paste the generated file as follows.
77
88version : builtins.getAttr version {
9− "0.11.1" = {
9+ "0.12.0" = {
1010 x86_64-linux-37 = {
11− name = "torchvision-0.11.1-cp37-cp37m-linux_x86_64.whl";
12− url = "https://download.pytorch.org/whl/cu113/torchvision-0.11.1%2Bcu113-cp37-cp37m-linux_x86_64.whl";
13− hash = "sha256-2xKWqWNKqmOMyVJnPfbtF+B9PQ7z4S66J1T3P8EvM0I=";
11+ name = "torchvision-0.12.0-cp37-cp37m-linux_x86_64.whl";
12+ url = "https://download.pytorch.org/whl/cu113/torchvision-0.12.0%2Bcu113-cp37-cp37m-linux_x86_64.whl";
13+ hash = "sha256-i/qktZT+5HQYQjtTHtxOV751DcsP9AHMsSV9/svsGzA=";
1414 };
1515 x86_64-linux-38 = {
16− name = "torchvision-0.11.1-cp38-cp38-linux_x86_64.whl";
17− url = "https://download.pytorch.org/whl/cu113/torchvision-0.11.1%2Bcu113-cp38-cp38-linux_x86_64.whl";
18− hash = "sha256-bFxvJaNEomytXXANHng+oU8YSLGkuO/TSzkoDskkaIE=";
16+ name = "torchvision-0.12.0-cp38-cp38-linux_x86_64.whl";
17+ url = "https://download.pytorch.org/whl/cu113/torchvision-0.12.0%2Bcu113-cp38-cp38-linux_x86_64.whl";
18+ hash = "sha256-NxM+jFsOwvAZmeWRFvbQ422a+xx/j1i9DD3ImW+DVBk=";
1919 };
2020 x86_64-linux-39 = {
21− name = "torchvision-0.11.1-cp39-cp39-linux_x86_64.whl";
22− url = "https://download.pytorch.org/whl/cu113/torchvision-0.11.1%2Bcu113-cp39-cp39-linux_x86_64.whl";
23− hash = "sha256-ysN3LmSKR+FVKYGnCGQJqa8lVApVT5rPMO+NHmmazAc=";
21+ name = "torchvision-0.12.0-cp39-cp39-linux_x86_64.whl";
22+ url = "https://download.pytorch.org/whl/cu113/torchvision-0.12.0%2Bcu113-cp39-cp39-linux_x86_64.whl";
23+ hash = "sha256-bGO5q+KEnv7SexmbbUWaIbsBcIxyDbL8pevZQbLwDbg=";
24+ };
25+ x86_64-linux-310 = {
26+ name = "torchvision-0.12.0-cp310-cp310-linux_x86_64.whl";
27+ url = "https://download.pytorch.org/whl/cu113/torchvision-0.12.0%2Bcu113-cp310-cp310-linux_x86_64.whl";
28+ hash = "sha256-ocsGOHa967HcZGV+1omD/xMHufmoi166Yg2Hr+SEhfE=";
29+ };
30+ x86_64-darwin-37 = {
31+ name = "torchvision-0.12.0-cp37-cp37m-macosx_10_9_x86_64.whl";
32+ url = "https://download.pytorch.org/whl/torchvision-0.12.0-cp37-cp37m-macosx_10_9_x86_64.whl";
33+ hash = "sha256-GJM7xZf0VjmTJJcZqWqV28fTN0yQ+7MNPafVGPOv60I=";
34+ };
35+ x86_64-darwin-38 = {
36+ name = "torchvision-0.12.0-cp38-cp38-macosx_10_9_x86_64.whl";
37+ url = "https://download.pytorch.org/whl/torchvision-0.12.0-cp38-cp38-macosx_10_9_x86_64.whl";
38+ hash = "sha256-DWAuCb1Fc2/y55aOjduw7s6Vb/ltcVSLGxtIeP33S9g=";
39+ };
40+ x86_64-darwin-39 = {
41+ name = "torchvision-0.12.0-cp39-cp39-macosx_10_9_x86_64.whl";
42+ url = "https://download.pytorch.org/whl/torchvision-0.12.0-cp39-cp39-macosx_10_9_x86_64.whl";
43+ hash = "sha256-RMye+ZLS4qtjsIg/fezrwiRNupO3JUe6EfV6yEUvbq0=";
44+ };
45+ x86_64-darwin-310 = {
46+ name = "torchvision-0.12.0-cp310-cp310-macosx_10_9_x86_64.whl";
47+ url = "https://download.pytorch.org/whl/torchvision-0.12.0-cp310-cp310-macosx_10_9_x86_64.whl";
48+ hash = "sha256-aTZW5nkLarIeSm6H6BwpgrrZ5FW16yThS7ZyOC7GEw8=";
49+ };
50+ aarch64-darwin-38 = {
51+ name = "torchvision-0.12.0-cp38-cp38-macosx_11_0_arm64.whl";
52+ url = "https://download.pytorch.org/whl/torchvision-0.12.0-cp38-cp38-macosx_11_0_arm64.whl";
53+ hash = "sha256-n0JCD38LKc09YXdt8xV4JyV6DPFrLAJ3bcFslquxJW0=";
54+ };
55+ aarch64-darwin-39 = {
56+ name = "torchvision-0.12.0-cp39-cp39-macosx_11_0_arm64.whl";
57+ url = "https://download.pytorch.org/whl/torchvision-0.12.0-cp39-cp39-macosx_11_0_arm64.whl";
58+ hash = "sha256-adgvR7Z7rW3cu4eDO6WVCmwnG6l7quTAlVYQBxvwNPU=";
59+ };
60+ aarch64-darwin-310 = {
61+ name = "torchvision-0.12.0-cp310-cp310-macosx_11_0_arm64.whl";
62+ url = "https://download.pytorch.org/whl/torchvision-0.12.0-cp310-cp310-macosx_11_0_arm64.whl";
63+ hash = "sha256-oL5FAcoLobGVZEySQ/SaHEmiblKn83kkxCOdC/XsvY0=";
2464 };
2565 };
2666}
pkgs/development/python-modules/torchvision/prefetch.sh+13−4
@@ -5,12 +5,21 @@ set -eou pipefail
55
66version=$1
77
8−bucket="https://download.pytorch.org/whl/cu113"
8+linux_bucket="https://download.pytorch.org/whl/cu113"
9+darwin_bucket="https://download.pytorch.org/whl"
910
1011url_and_key_list=(
11− "x86_64-linux-37 $bucket/torchvision-${version}%2Bcu113-cp37-cp37m-linux_x86_64.whl torchvision-${version}-cp37-cp37m-linux_x86_64.whl"
12− "x86_64-linux-38 $bucket/torchvision-${version}%2Bcu113-cp38-cp38-linux_x86_64.whl torchvision-${version}-cp38-cp38-linux_x86_64.whl"
13− "x86_64-linux-39 $bucket/torchvision-${version}%2Bcu113-cp39-cp39-linux_x86_64.whl torchvision-${version}-cp39-cp39-linux_x86_64.whl"
12+ "x86_64-linux-37 $linux_bucket/torchvision-${version}%2Bcu113-cp37-cp37m-linux_x86_64.whl torchvision-${version}-cp37-cp37m-linux_x86_64.whl"
13+ "x86_64-linux-38 $linux_bucket/torchvision-${version}%2Bcu113-cp38-cp38-linux_x86_64.whl torchvision-${version}-cp38-cp38-linux_x86_64.whl"
14+ "x86_64-linux-39 $linux_bucket/torchvision-${version}%2Bcu113-cp39-cp39-linux_x86_64.whl torchvision-${version}-cp39-cp39-linux_x86_64.whl"
15+ "x86_64-linux-310 $linux_bucket/torchvision-${version}%2Bcu113-cp310-cp310-linux_x86_64.whl torchvision-${version}-cp310-cp310-linux_x86_64.whl"
16+ "x86_64-darwin-37 $darwin_bucket/torchvision-${version}-cp37-cp37m-macosx_10_9_x86_64.whl torchvision-${version}-cp37-cp37m-macosx_10_9_x86_64.whl"
17+ "x86_64-darwin-38 $darwin_bucket/torchvision-${version}-cp38-cp38-macosx_10_9_x86_64.whl torchvision-${version}-cp38-cp38-macosx_10_9_x86_64.whl"
18+ "x86_64-darwin-39 $darwin_bucket/torchvision-${version}-cp39-cp39-macosx_10_9_x86_64.whl torchvision-${version}-cp39-cp39-macosx_10_9_x86_64.whl"
19+ "x86_64-darwin-310 $darwin_bucket/torchvision-${version}-cp310-cp310-macosx_10_9_x86_64.whl torchvision-${version}-cp310-cp310-macosx_10_9_x86_64.whl"
20+ "aarch64-darwin-38 $darwin_bucket/torchvision-${version}-cp38-cp38-macosx_11_0_arm64.whl torchvision-${version}-cp38-cp38-macosx_11_0_arm64.whl"
21+ "aarch64-darwin-39 $darwin_bucket/torchvision-${version}-cp39-cp39-macosx_11_0_arm64.whl torchvision-${version}-cp39-cp39-macosx_11_0_arm64.whl"
22+ "aarch64-darwin-310 $darwin_bucket/torchvision-${version}-cp310-cp310-macosx_11_0_arm64.whl torchvision-${version}-cp310-cp310-macosx_11_0_arm64.whl"
1423)
1524
1625hashfile="binary-hashes-$version.nix"