python312Packages.watchfiles: cleanup, update (#398228)

authored by Nick Cao and committed by GitHub cd0fbfaa 9e2292f4

+22 -504
-468
pkgs/development/python-modules/watchfiles/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.3.0" 8 - source = "registry+https://github.com/rust-lang/crates.io-index" 9 - checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" 10 - 11 - [[package]] 12 - name = "bitflags" 13 - version = "1.3.2" 14 - source = "registry+https://github.com/rust-lang/crates.io-index" 15 - checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 16 - 17 - [[package]] 18 - name = "bitflags" 19 - version = "2.6.0" 20 - source = "registry+https://github.com/rust-lang/crates.io-index" 21 - checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" 22 - 23 - [[package]] 24 - name = "cc" 25 - version = "1.0.96" 26 - source = "registry+https://github.com/rust-lang/crates.io-index" 27 - checksum = "065a29261d53ba54260972629f9ca6bffa69bac13cd1fed61420f7fa68b9f8bd" 28 - 29 - [[package]] 30 - name = "cfg-if" 31 - version = "1.0.0" 32 - source = "registry+https://github.com/rust-lang/crates.io-index" 33 - checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 34 - 35 - [[package]] 36 - name = "crossbeam-channel" 37 - version = "0.5.12" 38 - source = "registry+https://github.com/rust-lang/crates.io-index" 39 - checksum = "ab3db02a9c5b5121e1e42fbdb1aeb65f5e02624cc58c43f2884c6ccac0b82f95" 40 - dependencies = [ 41 - "crossbeam-utils", 42 - ] 43 - 44 - [[package]] 45 - name = "crossbeam-utils" 46 - version = "0.8.19" 47 - source = "registry+https://github.com/rust-lang/crates.io-index" 48 - checksum = "248e3bacc7dc6baa3b21e405ee045c3047101a49145e7e9eca583ab4c2ca5345" 49 - 50 - [[package]] 51 - name = "filetime" 52 - version = "0.2.24" 53 - source = "registry+https://github.com/rust-lang/crates.io-index" 54 - checksum = "bf401df4a4e3872c4fe8151134cf483738e74b67fc934d6532c882b3d24a4550" 55 - dependencies = [ 56 - "cfg-if", 57 - "libc", 58 - "libredox", 59 - "windows-sys 0.59.0", 60 - ] 61 - 62 - [[package]] 63 - name = "fsevent-sys" 64 - version = "4.1.0" 65 - source = "registry+https://github.com/rust-lang/crates.io-index" 66 - checksum = "76ee7a02da4d231650c7cea31349b889be2f45ddb3ef3032d2ec8185f6313fd2" 67 - dependencies = [ 68 - "libc", 69 - ] 70 - 71 - [[package]] 72 - name = "heck" 73 - version = "0.5.0" 74 - source = "registry+https://github.com/rust-lang/crates.io-index" 75 - checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" 76 - 77 - [[package]] 78 - name = "indoc" 79 - version = "2.0.5" 80 - source = "registry+https://github.com/rust-lang/crates.io-index" 81 - checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5" 82 - 83 - [[package]] 84 - name = "inotify" 85 - version = "0.10.2" 86 - source = "registry+https://github.com/rust-lang/crates.io-index" 87 - checksum = "fdd168d97690d0b8c412d6b6c10360277f4d7ee495c5d0d5d5fe0854923255cc" 88 - dependencies = [ 89 - "bitflags 1.3.2", 90 - "inotify-sys", 91 - "libc", 92 - ] 93 - 94 - [[package]] 95 - name = "inotify-sys" 96 - version = "0.1.5" 97 - source = "registry+https://github.com/rust-lang/crates.io-index" 98 - checksum = "e05c02b5e89bff3b946cedeca278abc628fe811e604f027c45a8aa3cf793d0eb" 99 - dependencies = [ 100 - "libc", 101 - ] 102 - 103 - [[package]] 104 - name = "instant" 105 - version = "0.1.13" 106 - source = "registry+https://github.com/rust-lang/crates.io-index" 107 - checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" 108 - dependencies = [ 109 - "cfg-if", 110 - ] 111 - 112 - [[package]] 113 - name = "kqueue" 114 - version = "1.0.8" 115 - source = "registry+https://github.com/rust-lang/crates.io-index" 116 - checksum = "7447f1ca1b7b563588a205fe93dea8df60fd981423a768bc1c0ded35ed147d0c" 117 - dependencies = [ 118 - "kqueue-sys", 119 - "libc", 120 - ] 121 - 122 - [[package]] 123 - name = "kqueue-sys" 124 - version = "1.0.4" 125 - source = "registry+https://github.com/rust-lang/crates.io-index" 126 - checksum = "ed9625ffda8729b85e45cf04090035ac368927b8cebc34898e7c120f52e4838b" 127 - dependencies = [ 128 - "bitflags 1.3.2", 129 - "libc", 130 - ] 131 - 132 - [[package]] 133 - name = "libc" 134 - version = "0.2.169" 135 - source = "registry+https://github.com/rust-lang/crates.io-index" 136 - checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" 137 - 138 - [[package]] 139 - name = "libredox" 140 - version = "0.1.3" 141 - source = "registry+https://github.com/rust-lang/crates.io-index" 142 - checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" 143 - dependencies = [ 144 - "bitflags 2.6.0", 145 - "libc", 146 - "redox_syscall", 147 - ] 148 - 149 - [[package]] 150 - name = "log" 151 - version = "0.4.22" 152 - source = "registry+https://github.com/rust-lang/crates.io-index" 153 - checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" 154 - 155 - [[package]] 156 - name = "memoffset" 157 - version = "0.9.1" 158 - source = "registry+https://github.com/rust-lang/crates.io-index" 159 - checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" 160 - dependencies = [ 161 - "autocfg", 162 - ] 163 - 164 - [[package]] 165 - name = "mio" 166 - version = "1.0.3" 167 - source = "registry+https://github.com/rust-lang/crates.io-index" 168 - checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" 169 - dependencies = [ 170 - "libc", 171 - "log", 172 - "wasi", 173 - "windows-sys 0.52.0", 174 - ] 175 - 176 - [[package]] 177 - name = "notify" 178 - version = "7.0.0" 179 - source = "registry+https://github.com/rust-lang/crates.io-index" 180 - checksum = "c533b4c39709f9ba5005d8002048266593c1cfaf3c5f0739d5b8ab0c6c504009" 181 - dependencies = [ 182 - "bitflags 2.6.0", 183 - "filetime", 184 - "fsevent-sys", 185 - "inotify", 186 - "kqueue", 187 - "libc", 188 - "log", 189 - "mio", 190 - "notify-types", 191 - "walkdir", 192 - "windows-sys 0.52.0", 193 - ] 194 - 195 - [[package]] 196 - name = "notify-types" 197 - version = "1.0.1" 198 - source = "registry+https://github.com/rust-lang/crates.io-index" 199 - checksum = "585d3cb5e12e01aed9e8a1f70d5c6b5e86fe2a6e48fc8cd0b3e0b8df6f6eb174" 200 - dependencies = [ 201 - "instant", 202 - ] 203 - 204 - [[package]] 205 - name = "once_cell" 206 - version = "1.19.0" 207 - source = "registry+https://github.com/rust-lang/crates.io-index" 208 - checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" 209 - 210 - [[package]] 211 - name = "portable-atomic" 212 - version = "1.6.0" 213 - source = "registry+https://github.com/rust-lang/crates.io-index" 214 - checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0" 215 - 216 - [[package]] 217 - name = "proc-macro2" 218 - version = "1.0.81" 219 - source = "registry+https://github.com/rust-lang/crates.io-index" 220 - checksum = "3d1597b0c024618f09a9c3b8655b7e430397a36d23fdafec26d6965e9eec3eba" 221 - dependencies = [ 222 - "unicode-ident", 223 - ] 224 - 225 - [[package]] 226 - name = "pyo3" 227 - version = "0.23.3" 228 - source = "registry+https://github.com/rust-lang/crates.io-index" 229 - checksum = "e484fd2c8b4cb67ab05a318f1fd6fa8f199fcc30819f08f07d200809dba26c15" 230 - dependencies = [ 231 - "cfg-if", 232 - "indoc", 233 - "libc", 234 - "memoffset", 235 - "once_cell", 236 - "portable-atomic", 237 - "pyo3-build-config", 238 - "pyo3-ffi", 239 - "pyo3-macros", 240 - "unindent", 241 - ] 242 - 243 - [[package]] 244 - name = "pyo3-build-config" 245 - version = "0.23.3" 246 - source = "registry+https://github.com/rust-lang/crates.io-index" 247 - checksum = "dc0e0469a84f208e20044b98965e1561028180219e35352a2afaf2b942beff3b" 248 - dependencies = [ 249 - "once_cell", 250 - "python3-dll-a", 251 - "target-lexicon", 252 - ] 253 - 254 - [[package]] 255 - name = "pyo3-ffi" 256 - version = "0.23.3" 257 - source = "registry+https://github.com/rust-lang/crates.io-index" 258 - checksum = "eb1547a7f9966f6f1a0f0227564a9945fe36b90da5a93b3933fc3dc03fae372d" 259 - dependencies = [ 260 - "libc", 261 - "pyo3-build-config", 262 - ] 263 - 264 - [[package]] 265 - name = "pyo3-macros" 266 - version = "0.23.3" 267 - source = "registry+https://github.com/rust-lang/crates.io-index" 268 - checksum = "fdb6da8ec6fa5cedd1626c886fc8749bdcbb09424a86461eb8cdf096b7c33257" 269 - dependencies = [ 270 - "proc-macro2", 271 - "pyo3-macros-backend", 272 - "quote", 273 - "syn", 274 - ] 275 - 276 - [[package]] 277 - name = "pyo3-macros-backend" 278 - version = "0.23.3" 279 - source = "registry+https://github.com/rust-lang/crates.io-index" 280 - checksum = "38a385202ff5a92791168b1136afae5059d3ac118457bb7bc304c197c2d33e7d" 281 - dependencies = [ 282 - "heck", 283 - "proc-macro2", 284 - "pyo3-build-config", 285 - "quote", 286 - "syn", 287 - ] 288 - 289 - [[package]] 290 - name = "python3-dll-a" 291 - version = "0.2.11" 292 - source = "registry+https://github.com/rust-lang/crates.io-index" 293 - checksum = "9b9e268ee1be609e93a13eb06839f68f67e5fe0fb4049834d261c2d5091c1b6d" 294 - dependencies = [ 295 - "cc", 296 - ] 297 - 298 - [[package]] 299 - name = "quote" 300 - version = "1.0.36" 301 - source = "registry+https://github.com/rust-lang/crates.io-index" 302 - checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" 303 - dependencies = [ 304 - "proc-macro2", 305 - ] 306 - 307 - [[package]] 308 - name = "redox_syscall" 309 - version = "0.5.3" 310 - source = "registry+https://github.com/rust-lang/crates.io-index" 311 - checksum = "2a908a6e00f1fdd0dfd9c0eb08ce85126f6d8bbda50017e74bc4a4b7d4a926a4" 312 - dependencies = [ 313 - "bitflags 2.6.0", 314 - ] 315 - 316 - [[package]] 317 - name = "same-file" 318 - version = "1.0.6" 319 - source = "registry+https://github.com/rust-lang/crates.io-index" 320 - checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" 321 - dependencies = [ 322 - "winapi-util", 323 - ] 324 - 325 - [[package]] 326 - name = "syn" 327 - version = "2.0.60" 328 - source = "registry+https://github.com/rust-lang/crates.io-index" 329 - checksum = "909518bc7b1c9b779f1bbf07f2929d35af9f0f37e47c6e9ef7f9dddc1e1821f3" 330 - dependencies = [ 331 - "proc-macro2", 332 - "quote", 333 - "unicode-ident", 334 - ] 335 - 336 - [[package]] 337 - name = "target-lexicon" 338 - version = "0.12.14" 339 - source = "registry+https://github.com/rust-lang/crates.io-index" 340 - checksum = "e1fc403891a21bcfb7c37834ba66a547a8f402146eba7265b5a6d88059c9ff2f" 341 - 342 - [[package]] 343 - name = "unicode-ident" 344 - version = "1.0.12" 345 - source = "registry+https://github.com/rust-lang/crates.io-index" 346 - checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" 347 - 348 - [[package]] 349 - name = "unindent" 350 - version = "0.2.3" 351 - source = "registry+https://github.com/rust-lang/crates.io-index" 352 - checksum = "c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce" 353 - 354 - [[package]] 355 - name = "walkdir" 356 - version = "2.5.0" 357 - source = "registry+https://github.com/rust-lang/crates.io-index" 358 - checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" 359 - dependencies = [ 360 - "same-file", 361 - "winapi-util", 362 - ] 363 - 364 - [[package]] 365 - name = "wasi" 366 - version = "0.11.0+wasi-snapshot-preview1" 367 - source = "registry+https://github.com/rust-lang/crates.io-index" 368 - checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 369 - 370 - [[package]] 371 - name = "watchfiles_rust_notify" 372 - version = "1.0.4" 373 - dependencies = [ 374 - "crossbeam-channel", 375 - "notify", 376 - "pyo3", 377 - ] 378 - 379 - [[package]] 380 - name = "winapi-util" 381 - version = "0.1.9" 382 - source = "registry+https://github.com/rust-lang/crates.io-index" 383 - checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" 384 - dependencies = [ 385 - "windows-sys 0.59.0", 386 - ] 387 - 388 - [[package]] 389 - name = "windows-sys" 390 - version = "0.52.0" 391 - source = "registry+https://github.com/rust-lang/crates.io-index" 392 - checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" 393 - dependencies = [ 394 - "windows-targets", 395 - ] 396 - 397 - [[package]] 398 - name = "windows-sys" 399 - version = "0.59.0" 400 - source = "registry+https://github.com/rust-lang/crates.io-index" 401 - checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" 402 - dependencies = [ 403 - "windows-targets", 404 - ] 405 - 406 - [[package]] 407 - name = "windows-targets" 408 - version = "0.52.6" 409 - source = "registry+https://github.com/rust-lang/crates.io-index" 410 - checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" 411 - dependencies = [ 412 - "windows_aarch64_gnullvm", 413 - "windows_aarch64_msvc", 414 - "windows_i686_gnu", 415 - "windows_i686_gnullvm", 416 - "windows_i686_msvc", 417 - "windows_x86_64_gnu", 418 - "windows_x86_64_gnullvm", 419 - "windows_x86_64_msvc", 420 - ] 421 - 422 - [[package]] 423 - name = "windows_aarch64_gnullvm" 424 - version = "0.52.6" 425 - source = "registry+https://github.com/rust-lang/crates.io-index" 426 - checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" 427 - 428 - [[package]] 429 - name = "windows_aarch64_msvc" 430 - version = "0.52.6" 431 - source = "registry+https://github.com/rust-lang/crates.io-index" 432 - checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" 433 - 434 - [[package]] 435 - name = "windows_i686_gnu" 436 - version = "0.52.6" 437 - source = "registry+https://github.com/rust-lang/crates.io-index" 438 - checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" 439 - 440 - [[package]] 441 - name = "windows_i686_gnullvm" 442 - version = "0.52.6" 443 - source = "registry+https://github.com/rust-lang/crates.io-index" 444 - checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" 445 - 446 - [[package]] 447 - name = "windows_i686_msvc" 448 - version = "0.52.6" 449 - source = "registry+https://github.com/rust-lang/crates.io-index" 450 - checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" 451 - 452 - [[package]] 453 - name = "windows_x86_64_gnu" 454 - version = "0.52.6" 455 - source = "registry+https://github.com/rust-lang/crates.io-index" 456 - checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" 457 - 458 - [[package]] 459 - name = "windows_x86_64_gnullvm" 460 - version = "0.52.6" 461 - source = "registry+https://github.com/rust-lang/crates.io-index" 462 - checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" 463 - 464 - [[package]] 465 - name = "windows_x86_64_msvc" 466 - version = "0.52.6" 467 - source = "registry+https://github.com/rust-lang/crates.io-index" 468 - checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
+21 -33
pkgs/development/python-modules/watchfiles/default.nix
··· 1 1 { 2 2 lib, 3 - stdenv, 4 - anyio, 5 3 buildPythonPackage, 6 - cargo, 7 4 fetchFromGitHub, 8 5 rustPlatform, 9 - rustc, 10 - pythonOlder, 6 + anyio, 7 + 8 + # tests 11 9 dirty-equals, 12 10 pytest-mock, 13 11 pytest-timeout, 14 12 pytestCheckHook, 15 - typing-extensions, 16 - CoreServices, 17 - libiconv, 13 + versionCheckHook, 18 14 }: 19 15 20 16 buildPythonPackage rec { 21 17 pname = "watchfiles"; 22 - version = "1.0.4"; 18 + version = "1.0.5"; 23 19 pyproject = true; 24 20 25 - disabled = pythonOlder "3.9"; 26 - 27 21 src = fetchFromGitHub { 28 22 owner = "samuelcolvin"; 29 - repo = pname; 23 + repo = "watchfiles"; 30 24 tag = "v${version}"; 31 - hash = "sha256-0JBnUi/aRM9UFTkb8OkP9UkJV+BF2EieZptymRvAXc0="; 25 + hash = "sha256-a6SHqYRNMGXNkVvwj9RpLj449dAQtWXO44v1ko5suaw="; 32 26 }; 33 27 34 - cargoDeps = rustPlatform.importCargoLock { 35 - lockFile = ./Cargo.lock; 28 + cargoDeps = rustPlatform.fetchCargoVendor { 29 + inherit pname src version; 30 + hash = "sha256-2RMWxeOjitbEqer9+ETpMX9WxHEiPzVmEv7LpSiaRVg="; 36 31 }; 37 32 38 - buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ 39 - CoreServices 40 - libiconv 41 - ]; 42 - 43 33 nativeBuildInputs = [ 44 34 rustPlatform.cargoSetupHook 45 - cargo 46 - rustc 35 + rustPlatform.maturinBuildHook 47 36 ]; 48 37 49 - build-system = [ rustPlatform.maturinBuildHook ]; 50 - 51 - dependencies = [ anyio ]; 38 + dependencies = [ 39 + anyio 40 + ]; 52 41 53 42 # Tests need these permissions in order to use the FSEvents API on macOS. 54 43 sandboxProfile = '' ··· 60 49 pytest-mock 61 50 pytest-timeout 62 51 pytestCheckHook 52 + versionCheckHook 63 53 ]; 64 - 65 - postPatch = '' 66 - sed -i "/^requires-python =.*/a version = '${version}'" pyproject.toml 67 - ''; 54 + versionCheckProgramArg = "--version"; 68 55 69 56 preCheck = '' 70 57 rm -rf watchfiles ··· 77 64 78 65 pythonImportsCheck = [ "watchfiles" ]; 79 66 80 - meta = with lib; { 67 + meta = { 81 68 description = "File watching and code reload"; 69 + homepage = "https://watchfiles.helpmanual.io/"; 70 + changelog = "https://github.com/samuelcolvin/watchfiles/releases/tag/v${version}"; 71 + license = lib.licenses.mit; 72 + maintainers = with lib.maintainers; [ fab ]; 82 73 mainProgram = "watchfiles"; 83 - homepage = "https://watchfiles.helpmanual.io/"; 84 - license = licenses.mit; 85 - maintainers = with maintainers; [ fab ]; 86 74 }; 87 75 }
+1 -3
pkgs/top-level/python-packages.nix
··· 18707 18707 18708 18708 watchdog-gevent = callPackage ../development/python-modules/watchdog-gevent { }; 18709 18709 18710 - watchfiles = callPackage ../development/python-modules/watchfiles { 18711 - inherit (pkgs.darwin.apple_sdk.frameworks) CoreServices; 18712 - }; 18710 + watchfiles = callPackage ../development/python-modules/watchfiles { }; 18713 18711 18714 18712 watchgod = callPackage ../development/python-modules/watchgod { }; 18715 18713