lol

python311Packages.base2048: init at 0.1.3

Binary encoding with base-2048 in Python with Rust

https://github.com/ionite34/base2048

+563
+498
pkgs/development/python-modules/base2048/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 = "ahash" 7 + version = "0.7.7" 8 + source = "registry+https://github.com/rust-lang/crates.io-index" 9 + checksum = "5a824f2aa7e75a0c98c5a504fceb80649e9c35265d44525b5f94de4771a395cd" 10 + dependencies = [ 11 + "getrandom", 12 + "once_cell", 13 + "version_check", 14 + ] 15 + 16 + [[package]] 17 + name = "autocfg" 18 + version = "1.1.0" 19 + source = "registry+https://github.com/rust-lang/crates.io-index" 20 + checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" 21 + 22 + [[package]] 23 + name = "base2048" 24 + version = "0.1.3" 25 + dependencies = [ 26 + "hashbrown", 27 + "lazy_static", 28 + "pyo3", 29 + "rstest", 30 + ] 31 + 32 + [[package]] 33 + name = "bitflags" 34 + version = "1.3.2" 35 + source = "registry+https://github.com/rust-lang/crates.io-index" 36 + checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 37 + 38 + [[package]] 39 + name = "cfg-if" 40 + version = "1.0.0" 41 + source = "registry+https://github.com/rust-lang/crates.io-index" 42 + checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 43 + 44 + [[package]] 45 + name = "futures" 46 + version = "0.3.29" 47 + source = "registry+https://github.com/rust-lang/crates.io-index" 48 + checksum = "da0290714b38af9b4a7b094b8a37086d1b4e61f2df9122c3cad2577669145335" 49 + dependencies = [ 50 + "futures-channel", 51 + "futures-core", 52 + "futures-executor", 53 + "futures-io", 54 + "futures-sink", 55 + "futures-task", 56 + "futures-util", 57 + ] 58 + 59 + [[package]] 60 + name = "futures-channel" 61 + version = "0.3.29" 62 + source = "registry+https://github.com/rust-lang/crates.io-index" 63 + checksum = "ff4dd66668b557604244583e3e1e1eada8c5c2e96a6d0d6653ede395b78bbacb" 64 + dependencies = [ 65 + "futures-core", 66 + "futures-sink", 67 + ] 68 + 69 + [[package]] 70 + name = "futures-core" 71 + version = "0.3.29" 72 + source = "registry+https://github.com/rust-lang/crates.io-index" 73 + checksum = "eb1d22c66e66d9d72e1758f0bd7d4fd0bee04cad842ee34587d68c07e45d088c" 74 + 75 + [[package]] 76 + name = "futures-executor" 77 + version = "0.3.29" 78 + source = "registry+https://github.com/rust-lang/crates.io-index" 79 + checksum = "0f4fb8693db0cf099eadcca0efe2a5a22e4550f98ed16aba6c48700da29597bc" 80 + dependencies = [ 81 + "futures-core", 82 + "futures-task", 83 + "futures-util", 84 + ] 85 + 86 + [[package]] 87 + name = "futures-io" 88 + version = "0.3.29" 89 + source = "registry+https://github.com/rust-lang/crates.io-index" 90 + checksum = "8bf34a163b5c4c52d0478a4d757da8fb65cabef42ba90515efee0f6f9fa45aaa" 91 + 92 + [[package]] 93 + name = "futures-macro" 94 + version = "0.3.29" 95 + source = "registry+https://github.com/rust-lang/crates.io-index" 96 + checksum = "53b153fd91e4b0147f4aced87be237c98248656bb01050b96bf3ee89220a8ddb" 97 + dependencies = [ 98 + "proc-macro2", 99 + "quote", 100 + "syn 2.0.39", 101 + ] 102 + 103 + [[package]] 104 + name = "futures-sink" 105 + version = "0.3.29" 106 + source = "registry+https://github.com/rust-lang/crates.io-index" 107 + checksum = "e36d3378ee38c2a36ad710c5d30c2911d752cb941c00c72dbabfb786a7970817" 108 + 109 + [[package]] 110 + name = "futures-task" 111 + version = "0.3.29" 112 + source = "registry+https://github.com/rust-lang/crates.io-index" 113 + checksum = "efd193069b0ddadc69c46389b740bbccdd97203899b48d09c5f7969591d6bae2" 114 + 115 + [[package]] 116 + name = "futures-timer" 117 + version = "3.0.2" 118 + source = "registry+https://github.com/rust-lang/crates.io-index" 119 + checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c" 120 + 121 + [[package]] 122 + name = "futures-util" 123 + version = "0.3.29" 124 + source = "registry+https://github.com/rust-lang/crates.io-index" 125 + checksum = "a19526d624e703a3179b3d322efec918b6246ea0fa51d41124525f00f1cc8104" 126 + dependencies = [ 127 + "futures-channel", 128 + "futures-core", 129 + "futures-io", 130 + "futures-macro", 131 + "futures-sink", 132 + "futures-task", 133 + "memchr", 134 + "pin-project-lite", 135 + "pin-utils", 136 + "slab", 137 + ] 138 + 139 + [[package]] 140 + name = "getrandom" 141 + version = "0.2.11" 142 + source = "registry+https://github.com/rust-lang/crates.io-index" 143 + checksum = "fe9006bed769170c11f845cf00c7c1e9092aeb3f268e007c3e760ac68008070f" 144 + dependencies = [ 145 + "cfg-if", 146 + "libc", 147 + "wasi", 148 + ] 149 + 150 + [[package]] 151 + name = "hashbrown" 152 + version = "0.12.3" 153 + source = "registry+https://github.com/rust-lang/crates.io-index" 154 + checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" 155 + dependencies = [ 156 + "ahash", 157 + ] 158 + 159 + [[package]] 160 + name = "indoc" 161 + version = "1.0.9" 162 + source = "registry+https://github.com/rust-lang/crates.io-index" 163 + checksum = "bfa799dd5ed20a7e349f3b4639aa80d74549c81716d9ec4f994c9b5815598306" 164 + 165 + [[package]] 166 + name = "lazy_static" 167 + version = "1.4.0" 168 + source = "registry+https://github.com/rust-lang/crates.io-index" 169 + checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" 170 + 171 + [[package]] 172 + name = "libc" 173 + version = "0.2.150" 174 + source = "registry+https://github.com/rust-lang/crates.io-index" 175 + checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c" 176 + 177 + [[package]] 178 + name = "lock_api" 179 + version = "0.4.11" 180 + source = "registry+https://github.com/rust-lang/crates.io-index" 181 + checksum = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45" 182 + dependencies = [ 183 + "autocfg", 184 + "scopeguard", 185 + ] 186 + 187 + [[package]] 188 + name = "memchr" 189 + version = "2.6.4" 190 + source = "registry+https://github.com/rust-lang/crates.io-index" 191 + checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167" 192 + 193 + [[package]] 194 + name = "memoffset" 195 + version = "0.6.5" 196 + source = "registry+https://github.com/rust-lang/crates.io-index" 197 + checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" 198 + dependencies = [ 199 + "autocfg", 200 + ] 201 + 202 + [[package]] 203 + name = "once_cell" 204 + version = "1.19.0" 205 + source = "registry+https://github.com/rust-lang/crates.io-index" 206 + checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" 207 + 208 + [[package]] 209 + name = "parking_lot" 210 + version = "0.12.1" 211 + source = "registry+https://github.com/rust-lang/crates.io-index" 212 + checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" 213 + dependencies = [ 214 + "lock_api", 215 + "parking_lot_core", 216 + ] 217 + 218 + [[package]] 219 + name = "parking_lot_core" 220 + version = "0.9.9" 221 + source = "registry+https://github.com/rust-lang/crates.io-index" 222 + checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e" 223 + dependencies = [ 224 + "cfg-if", 225 + "libc", 226 + "redox_syscall", 227 + "smallvec", 228 + "windows-targets", 229 + ] 230 + 231 + [[package]] 232 + name = "pin-project-lite" 233 + version = "0.2.13" 234 + source = "registry+https://github.com/rust-lang/crates.io-index" 235 + checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58" 236 + 237 + [[package]] 238 + name = "pin-utils" 239 + version = "0.1.0" 240 + source = "registry+https://github.com/rust-lang/crates.io-index" 241 + checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" 242 + 243 + [[package]] 244 + name = "proc-macro2" 245 + version = "1.0.70" 246 + source = "registry+https://github.com/rust-lang/crates.io-index" 247 + checksum = "39278fbbf5fb4f646ce651690877f89d1c5811a3d4acb27700c1cb3cdb78fd3b" 248 + dependencies = [ 249 + "unicode-ident", 250 + ] 251 + 252 + [[package]] 253 + name = "pyo3" 254 + version = "0.17.3" 255 + source = "registry+https://github.com/rust-lang/crates.io-index" 256 + checksum = "268be0c73583c183f2b14052337465768c07726936a260f480f0857cb95ba543" 257 + dependencies = [ 258 + "cfg-if", 259 + "indoc", 260 + "libc", 261 + "memoffset", 262 + "parking_lot", 263 + "pyo3-build-config", 264 + "pyo3-ffi", 265 + "pyo3-macros", 266 + "unindent", 267 + ] 268 + 269 + [[package]] 270 + name = "pyo3-build-config" 271 + version = "0.17.3" 272 + source = "registry+https://github.com/rust-lang/crates.io-index" 273 + checksum = "28fcd1e73f06ec85bf3280c48c67e731d8290ad3d730f8be9dc07946923005c8" 274 + dependencies = [ 275 + "once_cell", 276 + "target-lexicon", 277 + ] 278 + 279 + [[package]] 280 + name = "pyo3-ffi" 281 + version = "0.17.3" 282 + source = "registry+https://github.com/rust-lang/crates.io-index" 283 + checksum = "0f6cb136e222e49115b3c51c32792886defbfb0adead26a688142b346a0b9ffc" 284 + dependencies = [ 285 + "libc", 286 + "pyo3-build-config", 287 + ] 288 + 289 + [[package]] 290 + name = "pyo3-macros" 291 + version = "0.17.3" 292 + source = "registry+https://github.com/rust-lang/crates.io-index" 293 + checksum = "94144a1266e236b1c932682136dc35a9dee8d3589728f68130c7c3861ef96b28" 294 + dependencies = [ 295 + "proc-macro2", 296 + "pyo3-macros-backend", 297 + "quote", 298 + "syn 1.0.109", 299 + ] 300 + 301 + [[package]] 302 + name = "pyo3-macros-backend" 303 + version = "0.17.3" 304 + source = "registry+https://github.com/rust-lang/crates.io-index" 305 + checksum = "c8df9be978a2d2f0cdebabb03206ed73b11314701a5bfe71b0d753b81997777f" 306 + dependencies = [ 307 + "proc-macro2", 308 + "quote", 309 + "syn 1.0.109", 310 + ] 311 + 312 + [[package]] 313 + name = "quote" 314 + version = "1.0.33" 315 + source = "registry+https://github.com/rust-lang/crates.io-index" 316 + checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" 317 + dependencies = [ 318 + "proc-macro2", 319 + ] 320 + 321 + [[package]] 322 + name = "redox_syscall" 323 + version = "0.4.1" 324 + source = "registry+https://github.com/rust-lang/crates.io-index" 325 + checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" 326 + dependencies = [ 327 + "bitflags", 328 + ] 329 + 330 + [[package]] 331 + name = "rstest" 332 + version = "0.15.0" 333 + source = "registry+https://github.com/rust-lang/crates.io-index" 334 + checksum = "e9c9dc66cc29792b663ffb5269be669f1613664e69ad56441fdb895c2347b930" 335 + dependencies = [ 336 + "futures", 337 + "futures-timer", 338 + "rstest_macros", 339 + "rustc_version", 340 + ] 341 + 342 + [[package]] 343 + name = "rstest_macros" 344 + version = "0.14.0" 345 + source = "registry+https://github.com/rust-lang/crates.io-index" 346 + checksum = "5015e68a0685a95ade3eee617ff7101ab6a3fc689203101ca16ebc16f2b89c66" 347 + dependencies = [ 348 + "cfg-if", 349 + "proc-macro2", 350 + "quote", 351 + "rustc_version", 352 + "syn 1.0.109", 353 + ] 354 + 355 + [[package]] 356 + name = "rustc_version" 357 + version = "0.4.0" 358 + source = "registry+https://github.com/rust-lang/crates.io-index" 359 + checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" 360 + dependencies = [ 361 + "semver", 362 + ] 363 + 364 + [[package]] 365 + name = "scopeguard" 366 + version = "1.2.0" 367 + source = "registry+https://github.com/rust-lang/crates.io-index" 368 + checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" 369 + 370 + [[package]] 371 + name = "semver" 372 + version = "1.0.20" 373 + source = "registry+https://github.com/rust-lang/crates.io-index" 374 + checksum = "836fa6a3e1e547f9a2c4040802ec865b5d85f4014efe00555d7090a3dcaa1090" 375 + 376 + [[package]] 377 + name = "slab" 378 + version = "0.4.9" 379 + source = "registry+https://github.com/rust-lang/crates.io-index" 380 + checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" 381 + dependencies = [ 382 + "autocfg", 383 + ] 384 + 385 + [[package]] 386 + name = "smallvec" 387 + version = "1.11.2" 388 + source = "registry+https://github.com/rust-lang/crates.io-index" 389 + checksum = "4dccd0940a2dcdf68d092b8cbab7dc0ad8fa938bf95787e1b916b0e3d0e8e970" 390 + 391 + [[package]] 392 + name = "syn" 393 + version = "1.0.109" 394 + source = "registry+https://github.com/rust-lang/crates.io-index" 395 + checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" 396 + dependencies = [ 397 + "proc-macro2", 398 + "quote", 399 + "unicode-ident", 400 + ] 401 + 402 + [[package]] 403 + name = "syn" 404 + version = "2.0.39" 405 + source = "registry+https://github.com/rust-lang/crates.io-index" 406 + checksum = "23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a" 407 + dependencies = [ 408 + "proc-macro2", 409 + "quote", 410 + "unicode-ident", 411 + ] 412 + 413 + [[package]] 414 + name = "target-lexicon" 415 + version = "0.12.12" 416 + source = "registry+https://github.com/rust-lang/crates.io-index" 417 + checksum = "14c39fd04924ca3a864207c66fc2cd7d22d7c016007f9ce846cbb9326331930a" 418 + 419 + [[package]] 420 + name = "unicode-ident" 421 + version = "1.0.12" 422 + source = "registry+https://github.com/rust-lang/crates.io-index" 423 + checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" 424 + 425 + [[package]] 426 + name = "unindent" 427 + version = "0.1.11" 428 + source = "registry+https://github.com/rust-lang/crates.io-index" 429 + checksum = "e1766d682d402817b5ac4490b3c3002d91dfa0d22812f341609f97b08757359c" 430 + 431 + [[package]] 432 + name = "version_check" 433 + version = "0.9.4" 434 + source = "registry+https://github.com/rust-lang/crates.io-index" 435 + checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" 436 + 437 + [[package]] 438 + name = "wasi" 439 + version = "0.11.0+wasi-snapshot-preview1" 440 + source = "registry+https://github.com/rust-lang/crates.io-index" 441 + checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 442 + 443 + [[package]] 444 + name = "windows-targets" 445 + version = "0.48.5" 446 + source = "registry+https://github.com/rust-lang/crates.io-index" 447 + checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" 448 + dependencies = [ 449 + "windows_aarch64_gnullvm", 450 + "windows_aarch64_msvc", 451 + "windows_i686_gnu", 452 + "windows_i686_msvc", 453 + "windows_x86_64_gnu", 454 + "windows_x86_64_gnullvm", 455 + "windows_x86_64_msvc", 456 + ] 457 + 458 + [[package]] 459 + name = "windows_aarch64_gnullvm" 460 + version = "0.48.5" 461 + source = "registry+https://github.com/rust-lang/crates.io-index" 462 + checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" 463 + 464 + [[package]] 465 + name = "windows_aarch64_msvc" 466 + version = "0.48.5" 467 + source = "registry+https://github.com/rust-lang/crates.io-index" 468 + checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" 469 + 470 + [[package]] 471 + name = "windows_i686_gnu" 472 + version = "0.48.5" 473 + source = "registry+https://github.com/rust-lang/crates.io-index" 474 + checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" 475 + 476 + [[package]] 477 + name = "windows_i686_msvc" 478 + version = "0.48.5" 479 + source = "registry+https://github.com/rust-lang/crates.io-index" 480 + checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" 481 + 482 + [[package]] 483 + name = "windows_x86_64_gnu" 484 + version = "0.48.5" 485 + source = "registry+https://github.com/rust-lang/crates.io-index" 486 + checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" 487 + 488 + [[package]] 489 + name = "windows_x86_64_gnullvm" 490 + version = "0.48.5" 491 + source = "registry+https://github.com/rust-lang/crates.io-index" 492 + checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" 493 + 494 + [[package]] 495 + name = "windows_x86_64_msvc" 496 + version = "0.48.5" 497 + source = "registry+https://github.com/rust-lang/crates.io-index" 498 + checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
+63
pkgs/development/python-modules/base2048/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , cargo 4 + , fetchFromGitHub 5 + , frelatage 6 + , maturin 7 + , pytestCheckHook 8 + , pythonOlder 9 + , rustc 10 + , rustPlatform 11 + }: 12 + 13 + buildPythonPackage rec { 14 + pname = "base2048"; 15 + version = "0.1.3"; 16 + pyproject = true; 17 + 18 + disabled = pythonOlder "3.7"; 19 + 20 + src = fetchFromGitHub { 21 + owner = "ionite34"; 22 + repo = "base2048"; 23 + rev = "refs/tags/v${version}"; 24 + hash = "sha256-OXlfycJB1IrW2Zq0xPDGjjwCdRTWtX/ixPGWcd+YjAg="; 25 + }; 26 + 27 + cargoDeps = rustPlatform.importCargoLock { 28 + lockFile = ./Cargo.lock; 29 + }; 30 + 31 + postPatch = '' 32 + ln -s ${./Cargo.lock} Cargo.lock 33 + ''; 34 + 35 + nativeBuildInputs = [ 36 + cargo 37 + rustPlatform.cargoSetupHook 38 + rustPlatform.maturinBuildHook 39 + rustc 40 + ]; 41 + 42 + passthru.optional-dependencies = { 43 + fuzz = [ 44 + frelatage 45 + ]; 46 + }; 47 + 48 + nativeCheckInputs = [ 49 + pytestCheckHook 50 + ]; 51 + 52 + pythonImportsCheck = [ 53 + "base2048" 54 + ]; 55 + 56 + meta = with lib; { 57 + description = "Binary encoding with base-2048 in Python with Rust"; 58 + homepage = "https://github.com/ionite34/base2048"; 59 + changelog = "https://github.com/ionite34/base2048/releases/tag/v${version}"; 60 + license = licenses.mit; 61 + maintainers = with maintainers; [ fab ]; 62 + }; 63 + }
+2
pkgs/top-level/python-packages.nix
··· 1323 1323 1324 1324 baron = callPackage ../development/python-modules/baron { }; 1325 1325 1326 + base2048 = callPackage ../development/python-modules/base2048 { }; 1327 + 1326 1328 base36 = callPackage ../development/python-modules/base36 { }; 1327 1329 1328 1330 base58 = callPackage ../development/python-modules/base58 { };