Commits
Renee Otten authored 41df71c1f5e
3 3 | PortSystem 1.0 |
4 4 | PortGroup python 1.0 |
5 5 | |
6 6 | name py-blosc |
7 7 | version 1.8.1 |
8 8 | revision 0 |
9 9 | categories-append devel |
10 10 | platforms darwin |
11 11 | license MIT |
12 12 | |
13 - | python.versions 27 34 35 36 37 |
13 + | python.versions 27 35 36 37 38 |
14 14 | |
15 15 | maintainers {stromnov @stromnov} openmaintainer |
16 16 | |
17 17 | description Python package that wraps the Blosc compressor |
18 18 | |
19 19 | long_description Blosc (http://blosc.pytables.org) is a high performance \ |
20 20 | compressor optimized for binary data. It has been \ |
21 21 | designed to transmit data to the processor cache faster \ |
22 22 | than the traditional, non-compressed, direct memory fetch \ |
23 23 | approach via a memcpy() OS call. \ |
24 24 | \ |
25 25 | Blosc works well for compressing numerical arrays that \ |
26 26 | contains data with relatively low entropy, like sparse \ |
27 27 | data, time series, grids with regular-spaced values, etc. \ |
28 28 | \ |
29 29 | This is a Python package that wraps it. |
30 30 | |
31 - | homepage http://blosc.pytables.org/ |
31 + | homepage http://python-blosc.blosc.org/ |
32 32 | master_sites pypi:[string index ${python.rootname} 0]/${python.rootname} |
33 33 | |
34 34 | distname ${python.rootname}-${version} |
35 35 | |
36 36 | checksums rmd160 e3baf7239ee26b9864547cb877a6bd962aec6924 \ |
37 37 | sha256 d2122eaa88eb5296fe0ee8031990eb61e2420eed823c305073aa9a9b77bd7b0e \ |
38 38 | size 769220 |
39 39 | |
40 40 | if {${name} ne ${subport}} { |
41 41 | # Exception: py-cpuinfo currently only works on X86 and some ARM CPUs. |
42 42 | supported_archs i386 x86_64 |
43 43 | |
44 44 | depends_build-append \ |
45 45 | port:py${python.version}-setuptools |
46 46 | depends_lib-append port:blosc |
47 47 | |
48 48 | build.args-append --blosc=${prefix} |
49 49 | |
50 + | pre-test { |
51 + | test.env PYTHONPATH=[glob -nocomplain ${worksrcpath}/build/lib*] |
52 + | } |
53 + | |
54 + | test.run yes |
55 + | test.dir ${build.dir}/blosc |
56 + | test.cmd ${python.bin} test.py |
57 + | test.target |
58 + | |
50 59 | livecheck.type none |
51 60 | } |