# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0
PortGroup           rust 1.0

name                py-safetensors
version             0.5.3
revision            0
categories-append   textproc

license             Apache-2
maintainers         nomaintainer

description         Fast and Safe Tensor serialization
long_description    Simple, safe way to store and distribute tensors. \
                    Safetensors is a format for storing tensors safely \
                    (as opposed to pickle) and efficiently.

homepage            https://github.com/huggingface/safetensors

checksums           ${distname}${extract.suffix} \
                    rmd160  0526572908f0fe27a35c7bbffca101e045817ece \
                    sha256  b6b0d6ecacec39a4fdd99cc19f4576f5219ce858e6fd8dbe7609df0b8dc56965 \
                    size    67210

python.versions     310 311 312 313 314
python.pep517_backend \
                    maturin

if {${name} ne ${subport}} {
    # cd ${worksrcpath}
    # awk -F'"' '/^name = /{name=$2} /^version = /{ver=$2} /^checksum = /{print name, ver, $2, "\\"}' Cargo.lock | pbcopy
    cargo.crates \
                    autocfg 1.4.0 ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26 \
                    cfg-if 1.0.0 baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd \
                    heck 0.5.0 2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea \
                    indoc 2.0.5 b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5 \
                    itoa 1.0.14 d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674 \
                    libc 0.2.170 875b3680cb2f8f71bdcf9a30f38d48282f5d3c95cbf9b3fa57269bb5d5c06828 \
                    memchr 2.7.4 78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3 \
                    memmap2 0.9.5 fd3f7eed9d3848f8b98834af67102b720745c4ec028fcd0aa0239277e7de374f \
                    memoffset 0.9.1 488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a \
                    once_cell 1.20.3 945462a4b81e43c4e3ba96bd7b49d834c6f61198356aa858733bc4acf3cbe62e \
                    portable-atomic 1.11.0 350e9b48cbc6b0e028b0473b114454c6316e57336ee184ceab6e53f72c178b3e \
                    proc-macro2 1.0.93 60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99 \
                    pyo3 0.23.5 7778bffd85cf38175ac1f545509665d0b9b92a198ca7941f131f85f7a4f9a872 \
                    pyo3-build-config 0.23.5 94f6cbe86ef3bf18998d9df6e0f3fc1050a8c5efa409bf712e661a4366e010fb \
                    pyo3-ffi 0.23.5 e9f1b4c431c0bb1c8fb0a338709859eed0d030ff6daa34368d3b152a63dfdd8d \
                    pyo3-macros 0.23.5 fbc2201328f63c4710f68abdf653c89d8dbc2858b88c5d88b0ff38a75288a9da \
                    pyo3-macros-backend 0.23.5 fca6726ad0f3da9c9de093d6f116a93c1a38e417ed73bf138472cf4064f72028 \
                    quote 1.0.38 0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc \
                    ryu 1.0.19 6ea1a2d0a644769cc99faa24c3ad26b379b786fe7c36fd3c546254801650e6dd \
                    serde 1.0.218 e8dfc9d19bdbf6d17e22319da49161d5d0108e4188e8b680aef6299eed22df60 \
                    serde_derive 1.0.218 f09503e191f4e797cb8aac08e9a4a4695c5edf6a2e70e376d961ddd5c969f82b \
                    serde_json 1.0.139 44f86c3acccc9c65b153fe1b85a3be07fe5515274ec9f0653b4a0875731c72a6 \
                    syn 2.0.98 36147f1a48ae0ec2b5b3bc5b537d267457555a10dc06f3dbc8cb11ba3006d3b1 \
                    target-lexicon 0.12.16 61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1 \
                    unicode-ident 1.0.17 00e2473a93778eb0bad35909dff6a10d28e63f792f16ed15e404fca9d5eeedbe \
                    unindent 0.2.3 c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce
}
