python312Packages.py-rust-stemmers: init at 0.1.5

+421
+374
pkgs/development/python-modules/py-rust-stemmers/Cargo.lock
··· 1 + # This file is automatically @generated by Cargo. 2 + # It is not intended for manual editing. 3 + version = 4 4 + 5 + [[package]] 6 + name = "autocfg" 7 + version = "1.4.0" 8 + source = "registry+https://github.com/rust-lang/crates.io-index" 9 + checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" 10 + 11 + [[package]] 12 + name = "bitflags" 13 + version = "2.8.0" 14 + source = "registry+https://github.com/rust-lang/crates.io-index" 15 + checksum = "8f68f53c83ab957f72c32642f3868eec03eb974d1fb82e453128456482613d36" 16 + 17 + [[package]] 18 + name = "cfg-if" 19 + version = "1.0.0" 20 + source = "registry+https://github.com/rust-lang/crates.io-index" 21 + checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 22 + 23 + [[package]] 24 + name = "crossbeam-deque" 25 + version = "0.8.6" 26 + source = "registry+https://github.com/rust-lang/crates.io-index" 27 + checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" 28 + dependencies = [ 29 + "crossbeam-epoch", 30 + "crossbeam-utils", 31 + ] 32 + 33 + [[package]] 34 + name = "crossbeam-epoch" 35 + version = "0.9.18" 36 + source = "registry+https://github.com/rust-lang/crates.io-index" 37 + checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" 38 + dependencies = [ 39 + "crossbeam-utils", 40 + ] 41 + 42 + [[package]] 43 + name = "crossbeam-utils" 44 + version = "0.8.21" 45 + source = "registry+https://github.com/rust-lang/crates.io-index" 46 + checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" 47 + 48 + [[package]] 49 + name = "either" 50 + version = "1.13.0" 51 + source = "registry+https://github.com/rust-lang/crates.io-index" 52 + checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" 53 + 54 + [[package]] 55 + name = "indoc" 56 + version = "1.0.9" 57 + source = "registry+https://github.com/rust-lang/crates.io-index" 58 + checksum = "bfa799dd5ed20a7e349f3b4639aa80d74549c81716d9ec4f994c9b5815598306" 59 + 60 + [[package]] 61 + name = "libc" 62 + version = "0.2.169" 63 + source = "registry+https://github.com/rust-lang/crates.io-index" 64 + checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" 65 + 66 + [[package]] 67 + name = "lock_api" 68 + version = "0.4.12" 69 + source = "registry+https://github.com/rust-lang/crates.io-index" 70 + checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" 71 + dependencies = [ 72 + "autocfg", 73 + "scopeguard", 74 + ] 75 + 76 + [[package]] 77 + name = "memoffset" 78 + version = "0.8.0" 79 + source = "registry+https://github.com/rust-lang/crates.io-index" 80 + checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1" 81 + dependencies = [ 82 + "autocfg", 83 + ] 84 + 85 + [[package]] 86 + name = "once_cell" 87 + version = "1.20.3" 88 + source = "registry+https://github.com/rust-lang/crates.io-index" 89 + checksum = "945462a4b81e43c4e3ba96bd7b49d834c6f61198356aa858733bc4acf3cbe62e" 90 + 91 + [[package]] 92 + name = "parking_lot" 93 + version = "0.12.3" 94 + source = "registry+https://github.com/rust-lang/crates.io-index" 95 + checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" 96 + dependencies = [ 97 + "lock_api", 98 + "parking_lot_core", 99 + ] 100 + 101 + [[package]] 102 + name = "parking_lot_core" 103 + version = "0.9.10" 104 + source = "registry+https://github.com/rust-lang/crates.io-index" 105 + checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" 106 + dependencies = [ 107 + "cfg-if", 108 + "libc", 109 + "redox_syscall", 110 + "smallvec", 111 + "windows-targets", 112 + ] 113 + 114 + [[package]] 115 + name = "proc-macro2" 116 + version = "1.0.93" 117 + source = "registry+https://github.com/rust-lang/crates.io-index" 118 + checksum = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99" 119 + dependencies = [ 120 + "unicode-ident", 121 + ] 122 + 123 + [[package]] 124 + name = "py_rust_stemmers" 125 + version = "0.1.5" 126 + dependencies = [ 127 + "pyo3", 128 + "rayon", 129 + "rust-stemmers", 130 + ] 131 + 132 + [[package]] 133 + name = "pyo3" 134 + version = "0.18.3" 135 + source = "registry+https://github.com/rust-lang/crates.io-index" 136 + checksum = "e3b1ac5b3731ba34fdaa9785f8d74d17448cd18f30cf19e0c7e7b1fdb5272109" 137 + dependencies = [ 138 + "cfg-if", 139 + "indoc", 140 + "libc", 141 + "memoffset", 142 + "parking_lot", 143 + "pyo3-build-config", 144 + "pyo3-ffi", 145 + "pyo3-macros", 146 + "unindent", 147 + ] 148 + 149 + [[package]] 150 + name = "pyo3-build-config" 151 + version = "0.18.3" 152 + source = "registry+https://github.com/rust-lang/crates.io-index" 153 + checksum = "9cb946f5ac61bb61a5014924910d936ebd2b23b705f7a4a3c40b05c720b079a3" 154 + dependencies = [ 155 + "once_cell", 156 + "target-lexicon", 157 + ] 158 + 159 + [[package]] 160 + name = "pyo3-ffi" 161 + version = "0.18.3" 162 + source = "registry+https://github.com/rust-lang/crates.io-index" 163 + checksum = "fd4d7c5337821916ea2a1d21d1092e8443cf34879e53a0ac653fbb98f44ff65c" 164 + dependencies = [ 165 + "libc", 166 + "pyo3-build-config", 167 + ] 168 + 169 + [[package]] 170 + name = "pyo3-macros" 171 + version = "0.18.3" 172 + source = "registry+https://github.com/rust-lang/crates.io-index" 173 + checksum = "a9d39c55dab3fc5a4b25bbd1ac10a2da452c4aca13bb450f22818a002e29648d" 174 + dependencies = [ 175 + "proc-macro2", 176 + "pyo3-macros-backend", 177 + "quote", 178 + "syn 1.0.109", 179 + ] 180 + 181 + [[package]] 182 + name = "pyo3-macros-backend" 183 + version = "0.18.3" 184 + source = "registry+https://github.com/rust-lang/crates.io-index" 185 + checksum = "97daff08a4c48320587b5224cc98d609e3c27b6d437315bd40b605c98eeb5918" 186 + dependencies = [ 187 + "proc-macro2", 188 + "quote", 189 + "syn 1.0.109", 190 + ] 191 + 192 + [[package]] 193 + name = "quote" 194 + version = "1.0.38" 195 + source = "registry+https://github.com/rust-lang/crates.io-index" 196 + checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc" 197 + dependencies = [ 198 + "proc-macro2", 199 + ] 200 + 201 + [[package]] 202 + name = "rayon" 203 + version = "1.10.0" 204 + source = "registry+https://github.com/rust-lang/crates.io-index" 205 + checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa" 206 + dependencies = [ 207 + "either", 208 + "rayon-core", 209 + ] 210 + 211 + [[package]] 212 + name = "rayon-core" 213 + version = "1.12.1" 214 + source = "registry+https://github.com/rust-lang/crates.io-index" 215 + checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" 216 + dependencies = [ 217 + "crossbeam-deque", 218 + "crossbeam-utils", 219 + ] 220 + 221 + [[package]] 222 + name = "redox_syscall" 223 + version = "0.5.8" 224 + source = "registry+https://github.com/rust-lang/crates.io-index" 225 + checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" 226 + dependencies = [ 227 + "bitflags", 228 + ] 229 + 230 + [[package]] 231 + name = "rust-stemmers" 232 + version = "1.2.0" 233 + source = "registry+https://github.com/rust-lang/crates.io-index" 234 + checksum = "e46a2036019fdb888131db7a4c847a1063a7493f971ed94ea82c67eada63ca54" 235 + dependencies = [ 236 + "serde", 237 + "serde_derive", 238 + ] 239 + 240 + [[package]] 241 + name = "scopeguard" 242 + version = "1.2.0" 243 + source = "registry+https://github.com/rust-lang/crates.io-index" 244 + checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" 245 + 246 + [[package]] 247 + name = "serde" 248 + version = "1.0.218" 249 + source = "registry+https://github.com/rust-lang/crates.io-index" 250 + checksum = "e8dfc9d19bdbf6d17e22319da49161d5d0108e4188e8b680aef6299eed22df60" 251 + dependencies = [ 252 + "serde_derive", 253 + ] 254 + 255 + [[package]] 256 + name = "serde_derive" 257 + version = "1.0.218" 258 + source = "registry+https://github.com/rust-lang/crates.io-index" 259 + checksum = "f09503e191f4e797cb8aac08e9a4a4695c5edf6a2e70e376d961ddd5c969f82b" 260 + dependencies = [ 261 + "proc-macro2", 262 + "quote", 263 + "syn 2.0.98", 264 + ] 265 + 266 + [[package]] 267 + name = "smallvec" 268 + version = "1.14.0" 269 + source = "registry+https://github.com/rust-lang/crates.io-index" 270 + checksum = "7fcf8323ef1faaee30a44a340193b1ac6814fd9b7b4e88e9d4519a3e4abe1cfd" 271 + 272 + [[package]] 273 + name = "syn" 274 + version = "1.0.109" 275 + source = "registry+https://github.com/rust-lang/crates.io-index" 276 + checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" 277 + dependencies = [ 278 + "proc-macro2", 279 + "quote", 280 + "unicode-ident", 281 + ] 282 + 283 + [[package]] 284 + name = "syn" 285 + version = "2.0.98" 286 + source = "registry+https://github.com/rust-lang/crates.io-index" 287 + checksum = "36147f1a48ae0ec2b5b3bc5b537d267457555a10dc06f3dbc8cb11ba3006d3b1" 288 + dependencies = [ 289 + "proc-macro2", 290 + "quote", 291 + "unicode-ident", 292 + ] 293 + 294 + [[package]] 295 + name = "target-lexicon" 296 + version = "0.12.16" 297 + source = "registry+https://github.com/rust-lang/crates.io-index" 298 + checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" 299 + 300 + [[package]] 301 + name = "unicode-ident" 302 + version = "1.0.17" 303 + source = "registry+https://github.com/rust-lang/crates.io-index" 304 + checksum = "00e2473a93778eb0bad35909dff6a10d28e63f792f16ed15e404fca9d5eeedbe" 305 + 306 + [[package]] 307 + name = "unindent" 308 + version = "0.1.11" 309 + source = "registry+https://github.com/rust-lang/crates.io-index" 310 + checksum = "e1766d682d402817b5ac4490b3c3002d91dfa0d22812f341609f97b08757359c" 311 + 312 + [[package]] 313 + name = "windows-targets" 314 + version = "0.52.6" 315 + source = "registry+https://github.com/rust-lang/crates.io-index" 316 + checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" 317 + dependencies = [ 318 + "windows_aarch64_gnullvm", 319 + "windows_aarch64_msvc", 320 + "windows_i686_gnu", 321 + "windows_i686_gnullvm", 322 + "windows_i686_msvc", 323 + "windows_x86_64_gnu", 324 + "windows_x86_64_gnullvm", 325 + "windows_x86_64_msvc", 326 + ] 327 + 328 + [[package]] 329 + name = "windows_aarch64_gnullvm" 330 + version = "0.52.6" 331 + source = "registry+https://github.com/rust-lang/crates.io-index" 332 + checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" 333 + 334 + [[package]] 335 + name = "windows_aarch64_msvc" 336 + version = "0.52.6" 337 + source = "registry+https://github.com/rust-lang/crates.io-index" 338 + checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" 339 + 340 + [[package]] 341 + name = "windows_i686_gnu" 342 + version = "0.52.6" 343 + source = "registry+https://github.com/rust-lang/crates.io-index" 344 + checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" 345 + 346 + [[package]] 347 + name = "windows_i686_gnullvm" 348 + version = "0.52.6" 349 + source = "registry+https://github.com/rust-lang/crates.io-index" 350 + checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" 351 + 352 + [[package]] 353 + name = "windows_i686_msvc" 354 + version = "0.52.6" 355 + source = "registry+https://github.com/rust-lang/crates.io-index" 356 + checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" 357 + 358 + [[package]] 359 + name = "windows_x86_64_gnu" 360 + version = "0.52.6" 361 + source = "registry+https://github.com/rust-lang/crates.io-index" 362 + checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" 363 + 364 + [[package]] 365 + name = "windows_x86_64_gnullvm" 366 + version = "0.52.6" 367 + source = "registry+https://github.com/rust-lang/crates.io-index" 368 + checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" 369 + 370 + [[package]] 371 + name = "windows_x86_64_msvc" 372 + version = "0.52.6" 373 + source = "registry+https://github.com/rust-lang/crates.io-index" 374 + checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
+45
pkgs/development/python-modules/py-rust-stemmers/default.nix
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + rustPlatform, 6 + 7 + # build-system 8 + cargo, 9 + rustc, 10 + }: 11 + 12 + buildPythonPackage rec { 13 + pname = "py-rust-stemmers"; 14 + version = "0.1.5"; 15 + pyproject = true; 16 + 17 + src = fetchFromGitHub { 18 + owner = "qdrant"; 19 + repo = "py-rust-stemmers"; 20 + tag = "v${version}"; 21 + hash = "sha256-WpTbS8XoOKhyyt1/YGagulopFKiqNI0ETkhjpiX0TL8="; 22 + }; 23 + 24 + cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; }; 25 + 26 + postPatch = '' 27 + ln -s ${./Cargo.lock} Cargo.lock 28 + ''; 29 + 30 + build-system = [ 31 + cargo 32 + rustPlatform.cargoSetupHook 33 + rustPlatform.maturinBuildHook 34 + rustc 35 + ]; 36 + 37 + pythonImportsCheck = [ "py_rust_stemmers" ]; 38 + 39 + meta = { 40 + description = "High-performance Python wrapper around the rust-stemmers library, utilizing the Snowball stemming algorithm"; 41 + homepage = "https://github.com/qdrant/py-rust-stemmers"; 42 + license = lib.licenses.mit; 43 + maintainers = with lib.maintainers; [ GaetanLepage ]; 44 + }; 45 + }
+2
pkgs/top-level/python-packages.nix
··· 9622 9622 9623 9623 py-radix-sr = callPackage ../development/python-modules/py-radix-sr { }; 9624 9624 9625 + py-rust-stemmers = callPackage ../development/python-modules/py-rust-stemmers { }; 9626 + 9625 9627 py-sucks = callPackage ../development/python-modules/py-sucks { }; 9626 9628 9627 9629 nwdiag = callPackage ../development/python-modules/nwdiag { };