mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
35 lines
873 B
YAML
35 lines
873 B
YAML
|
distributable:
|
||
|
url: https://github.com/stub42/pytz/archive/release_{{version.raw}}.tar.gz
|
||
|
strip-components: 1
|
||
|
|
||
|
versions:
|
||
|
github: stub42/pytz/tags
|
||
|
strip: /^release_/
|
||
|
|
||
|
dependencies:
|
||
|
python.org: ~3.12
|
||
|
|
||
|
runtime:
|
||
|
env:
|
||
|
PYTHONPATH: ${{prefix}}/lib/python{{deps.python.org.version.marketing}}/site-packages:$PYTHONPATH
|
||
|
|
||
|
build:
|
||
|
dependencies:
|
||
|
linux:
|
||
|
gnu.org/gawk: '*' # awk has a malloc/free issue with the build script
|
||
|
rsync.samba.org: '*'
|
||
|
script:
|
||
|
- python -m pip install setuptools wheel
|
||
|
# use python3 from $PATH
|
||
|
- sed -i 's|/usr/bin/||g' Makefile
|
||
|
- make dist
|
||
|
- run: python -m pip install --prefix={{prefix}} .
|
||
|
working-directory: src
|
||
|
env:
|
||
|
linux:
|
||
|
CC: clang
|
||
|
|
||
|
test:
|
||
|
- python -c 'import pytz; print(pytz.__version__)' | grep {{version.raw}}
|
||
|
- python -c 'import pytz; print(pytz.timezone("UTC"))' | grep UTC
|