forked from conda-forge/ca-certificates-feedstock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meta.yaml
52 lines (43 loc) · 1.6 KB
/
meta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{% set version = "2016.8.2" %}
package:
name: ca-certificates
version: {{ version }}
# This does not have a source because it pulls these from certifi at present.
build:
number: 3
skip: true # [not py35]
# As openssl includes these (dependency of Python), they will be removed afterwards.
# This is our way of ensuring these files are kept anyways. Once conda-forge has its
# own openssl, this will no longer be necessary.
#
# Note: The Windows copy of openssl does not include these.
always_include_files:
- ssl/cert.pem # [unix]
- ssl/cacert.pem # [unix]
- Library\\ssl\\cert.pem # [win]
- Library\\ssl\\cacert.pem # [win]
requirements:
build:
- python
- certifi {{ version }}
test:
requires:
- curl
commands:
# Verify the certificates are there.
- test -f "${PREFIX}/ssl/cacert.pem" # [unix]
- test -f "${PREFIX}/ssl/cert.pem" # [unix]
- if not exist %LIBRARY_PREFIX%\\ssl\\cacert.pem exit 1 # [win]
- if not exist %LIBRARY_PREFIX%\\ssl\\cert.pem exit 1 # [win]
# Use the certificates to download something.
- curl --cacert "${PREFIX}/ssl/cacert.pem" https://www.google.com # [unix]
- curl --cacert %LIBRARY_PREFIX%\\ssl\\cacert.pem https://www.google.com # [win]
about:
home: https://github.com/conda-forge/ca-certificates-feedstock
license: ISC
summary: Certificates for use with other packages.
extra:
recipe-maintainers:
- jakirkham
- msarahan
- pelson