mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
+certifi.io/python-certifi (#5210)
* new file: projects/certifi.io/python-certifi/package.yml * ~3.11 & remove symlinking * change python libs path in test
This commit is contained in:
parent
66ea691626
commit
1c14803615
1 changed files with 30 additions and 0 deletions
30
projects/certifi.io/python-certifi/package.yml
Normal file
30
projects/certifi.io/python-certifi/package.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
distributable: ~
|
||||
|
||||
versions:
|
||||
url: https://pypi.org/rss/project/certifi/releases.xml
|
||||
match: /<title>\d+\.\d+\.\d+<\/title>/
|
||||
strip:
|
||||
- /^<title>/
|
||||
- /<\/title>$/
|
||||
|
||||
dependencies:
|
||||
python.org: ~3.11
|
||||
|
||||
runtime:
|
||||
env:
|
||||
PYTHONPATH: ${{prefix}}/lib/python{{deps.python.org.version.marketing}}/site-packages:$PYTHONPATH
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
curl.se: '*'
|
||||
script:
|
||||
- curl -L 'https://pypi.org/project/certifi/{{version.raw}}/#files' > page.html
|
||||
- cat page.html | grep -o 'https://files.pythonhosted.org/packages/[^"]*certifi-{{version.raw}}.tar.gz' > url.txt
|
||||
- curl -L $(cat url.txt) | tar -xz --strip-components=1
|
||||
- python -m pip install --prefix={{prefix}} .
|
||||
|
||||
test:
|
||||
- python -c 'import certifi;'
|
||||
- python -m certifi | grep '{{prefix}}/lib/python{{deps.python.org.version.marketing}}/site-packages/certifi/cacert.pem'
|
||||
- python -m certifi -h | grep 'usage'
|
||||
|
Loading…
Reference in a new issue