python3Packages.safetensors: 0.6.0 -> 0.6.1 (#431400)

authored by Gaétan Lepage and committed by GitHub 0bd24b53 b46b10c7

+10 -242
-234
pkgs/development/python-modules/safetensors/Cargo.lock
··· 1 - # This file is automatically @generated by Cargo. 2 - # It is not intended for manual editing. 3 - version = 3 4 - 5 - [[package]] 6 - name = "autocfg" 7 - version = "1.5.0" 8 - source = "registry+https://github.com/rust-lang/crates.io-index" 9 - checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" 10 - 11 - [[package]] 12 - name = "heck" 13 - version = "0.5.0" 14 - source = "registry+https://github.com/rust-lang/crates.io-index" 15 - checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" 16 - 17 - [[package]] 18 - name = "indoc" 19 - version = "2.0.6" 20 - source = "registry+https://github.com/rust-lang/crates.io-index" 21 - checksum = "f4c7245a08504955605670dbf141fceab975f15ca21570696aebe9d2e71576bd" 22 - 23 - [[package]] 24 - name = "itoa" 25 - version = "1.0.15" 26 - source = "registry+https://github.com/rust-lang/crates.io-index" 27 - checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" 28 - 29 - [[package]] 30 - name = "libc" 31 - version = "0.2.174" 32 - source = "registry+https://github.com/rust-lang/crates.io-index" 33 - checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776" 34 - 35 - [[package]] 36 - name = "memchr" 37 - version = "2.7.5" 38 - source = "registry+https://github.com/rust-lang/crates.io-index" 39 - checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0" 40 - 41 - [[package]] 42 - name = "memmap2" 43 - version = "0.9.5" 44 - source = "registry+https://github.com/rust-lang/crates.io-index" 45 - checksum = "fd3f7eed9d3848f8b98834af67102b720745c4ec028fcd0aa0239277e7de374f" 46 - dependencies = [ 47 - "libc", 48 - ] 49 - 50 - [[package]] 51 - name = "memoffset" 52 - version = "0.9.1" 53 - source = "registry+https://github.com/rust-lang/crates.io-index" 54 - checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" 55 - dependencies = [ 56 - "autocfg", 57 - ] 58 - 59 - [[package]] 60 - name = "once_cell" 61 - version = "1.21.3" 62 - source = "registry+https://github.com/rust-lang/crates.io-index" 63 - checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" 64 - 65 - [[package]] 66 - name = "portable-atomic" 67 - version = "1.11.1" 68 - source = "registry+https://github.com/rust-lang/crates.io-index" 69 - checksum = "f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483" 70 - 71 - [[package]] 72 - name = "proc-macro2" 73 - version = "1.0.95" 74 - source = "registry+https://github.com/rust-lang/crates.io-index" 75 - checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778" 76 - dependencies = [ 77 - "unicode-ident", 78 - ] 79 - 80 - [[package]] 81 - name = "pyo3" 82 - version = "0.25.1" 83 - source = "registry+https://github.com/rust-lang/crates.io-index" 84 - checksum = "8970a78afe0628a3e3430376fc5fd76b6b45c4d43360ffd6cdd40bdde72b682a" 85 - dependencies = [ 86 - "indoc", 87 - "libc", 88 - "memoffset", 89 - "once_cell", 90 - "portable-atomic", 91 - "pyo3-build-config", 92 - "pyo3-ffi", 93 - "pyo3-macros", 94 - "unindent", 95 - ] 96 - 97 - [[package]] 98 - name = "pyo3-build-config" 99 - version = "0.25.1" 100 - source = "registry+https://github.com/rust-lang/crates.io-index" 101 - checksum = "458eb0c55e7ece017adeba38f2248ff3ac615e53660d7c71a238d7d2a01c7598" 102 - dependencies = [ 103 - "once_cell", 104 - "target-lexicon", 105 - ] 106 - 107 - [[package]] 108 - name = "pyo3-ffi" 109 - version = "0.25.1" 110 - source = "registry+https://github.com/rust-lang/crates.io-index" 111 - checksum = "7114fe5457c61b276ab77c5055f206295b812608083644a5c5b2640c3102565c" 112 - dependencies = [ 113 - "libc", 114 - "pyo3-build-config", 115 - ] 116 - 117 - [[package]] 118 - name = "pyo3-macros" 119 - version = "0.25.1" 120 - source = "registry+https://github.com/rust-lang/crates.io-index" 121 - checksum = "a8725c0a622b374d6cb051d11a0983786448f7785336139c3c94f5aa6bef7e50" 122 - dependencies = [ 123 - "proc-macro2", 124 - "pyo3-macros-backend", 125 - "quote", 126 - "syn", 127 - ] 128 - 129 - [[package]] 130 - name = "pyo3-macros-backend" 131 - version = "0.25.1" 132 - source = "registry+https://github.com/rust-lang/crates.io-index" 133 - checksum = "4109984c22491085343c05b0dbc54ddc405c3cf7b4374fc533f5c3313a572ccc" 134 - dependencies = [ 135 - "heck", 136 - "proc-macro2", 137 - "pyo3-build-config", 138 - "quote", 139 - "syn", 140 - ] 141 - 142 - [[package]] 143 - name = "quote" 144 - version = "1.0.40" 145 - source = "registry+https://github.com/rust-lang/crates.io-index" 146 - checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d" 147 - dependencies = [ 148 - "proc-macro2", 149 - ] 150 - 151 - [[package]] 152 - name = "ryu" 153 - version = "1.0.20" 154 - source = "registry+https://github.com/rust-lang/crates.io-index" 155 - checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f" 156 - 157 - [[package]] 158 - name = "safetensors" 159 - version = "0.6.0-dev.0" 160 - dependencies = [ 161 - "serde", 162 - "serde_json", 163 - ] 164 - 165 - [[package]] 166 - name = "safetensors-python" 167 - version = "0.6.0-dev.0" 168 - dependencies = [ 169 - "memmap2", 170 - "pyo3", 171 - "safetensors", 172 - "serde_json", 173 - ] 174 - 175 - [[package]] 176 - name = "serde" 177 - version = "1.0.219" 178 - source = "registry+https://github.com/rust-lang/crates.io-index" 179 - checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" 180 - dependencies = [ 181 - "serde_derive", 182 - ] 183 - 184 - [[package]] 185 - name = "serde_derive" 186 - version = "1.0.219" 187 - source = "registry+https://github.com/rust-lang/crates.io-index" 188 - checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" 189 - dependencies = [ 190 - "proc-macro2", 191 - "quote", 192 - "syn", 193 - ] 194 - 195 - [[package]] 196 - name = "serde_json" 197 - version = "1.0.140" 198 - source = "registry+https://github.com/rust-lang/crates.io-index" 199 - checksum = "20068b6e96dc6c9bd23e01df8827e6c7e1f2fddd43c21810382803c136b99373" 200 - dependencies = [ 201 - "itoa", 202 - "memchr", 203 - "ryu", 204 - "serde", 205 - ] 206 - 207 - [[package]] 208 - name = "syn" 209 - version = "2.0.104" 210 - source = "registry+https://github.com/rust-lang/crates.io-index" 211 - checksum = "17b6f705963418cdb9927482fa304bc562ece2fdd4f616084c50b7023b435a40" 212 - dependencies = [ 213 - "proc-macro2", 214 - "quote", 215 - "unicode-ident", 216 - ] 217 - 218 - [[package]] 219 - name = "target-lexicon" 220 - version = "0.13.2" 221 - source = "registry+https://github.com/rust-lang/crates.io-index" 222 - checksum = "e502f78cdbb8ba4718f566c418c52bc729126ffd16baee5baa718cf25dd5a69a" 223 - 224 - [[package]] 225 - name = "unicode-ident" 226 - version = "1.0.18" 227 - source = "registry+https://github.com/rust-lang/crates.io-index" 228 - checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512" 229 - 230 - [[package]] 231 - name = "unindent" 232 - version = "0.2.4" 233 - source = "registry+https://github.com/rust-lang/crates.io-index" 234 - checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
+10 -8
pkgs/development/python-modules/safetensors/default.nix
··· 26 26 27 27 buildPythonPackage rec { 28 28 pname = "safetensors"; 29 - version = "0.6.0"; 29 + version = "0.6.1"; 30 30 pyproject = true; 31 31 32 32 src = fetchFromGitHub { 33 33 owner = "huggingface"; 34 34 repo = "safetensors"; 35 35 tag = "v${version}"; 36 - hash = "sha256-wAr/jvr0w+vOHjjqE7cPcAM/IMz+58YhfoJ2XC4987M="; 36 + hash = "sha256-GHeulf1LNl6vxu0mQLdU4FhMWMLxo34HmTdIMtHz+so="; 37 37 }; 38 38 39 39 sourceRoot = "${src.name}/bindings/python"; 40 40 41 - cargoDeps = rustPlatform.importCargoLock { 42 - lockFile = ./Cargo.lock; 41 + cargoDeps = rustPlatform.fetchCargoVendor { 42 + inherit 43 + pname 44 + version 45 + src 46 + sourceRoot 47 + ; 48 + hash = "sha256-2s5cdhR2KO6qBw9ZJmo/zW8+dIBN3kccUpOMfm8vKmA="; 43 49 }; 44 - 45 - postPatch = '' 46 - ln -s ${./Cargo.lock} Cargo.lock 47 - ''; 48 50 49 51 nativeBuildInputs = [ 50 52 rustPlatform.cargoSetupHook