Alexander Pyhalov
2018-11-14 e5ce0bbdf74916ba267eef37e2e37694e8f2b48a
commit | author | age
f791d5 1 #
AP 2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21
22 #
23 # Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
24 #
25
e5ce0b 26 # Component uses ABI3 naming.
AP 27 PYTHON3_SOABI=abi3
28
f791d5 29 include ../../../make-rules/shared-macros.mk
AP 30
31 COMPONENT_NAME=        cryptography
32 COMPONENT_VERSION=    2.1.4
e5ce0b 33 COMPONENT_REVISION=    3
f791d5 34 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
AP 35 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.gz
36 COMPONENT_ARCHIVE_HASH=    \
37     sha256:e4d967371c5b6b2e67855066471d844c5d52d210c36c28d49a8507b96e2c5291
38 COMPONENT_ARCHIVE_URL=    $(call pypi_url)
39 COMPONENT_PROJECT_URL=    https://cryptography.io/
40 COMPONENT_BUGDB=    python-mod/cryptography
41 COMPONENT_ANITYA_ID=    5532
42
dd0236 43 PYTHON_VERSIONS = 2.7 3.4 3.5
f791d5 44
AP 45 include $(WS_MAKE_RULES)/prep.mk
46 include $(WS_MAKE_RULES)/setup.py.mk
47 include $(WS_MAKE_RULES)/ips.mk
48
49 # common targets
50 build:        $(BUILD_32_and_64)
51
52 install:    $(INSTALL_32_and_64)
53
54 #
55 # tests require cryptography_vectors, iso8601, pretend, pytest>= 2.8.7,
56 # hypothesis>=1.11.4 and pyasn1_modules, some of which have not yet integrated.
57 # On a i386 kernel zone with the test dependencies installed, test results are:
58 # Python2.7: 74000 passed, 6136 skipped
59 # Python3.4: 74000 passed, 6136 skipped
60 # Python3.5: 74000 passed, 6136 skipped
61 #
62 test:        $(NO_TESTS)
63
64 REQUIRED_PACKAGES += library/python/cffi
65 REQUIRED_PACKAGES += library/security/openssl
dd0236 66 REQUIRED_PACKAGES += runtime/python-27
AP 67 REQUIRED_PACKAGES += runtime/python-34
68 REQUIRED_PACKAGES += runtime/python-35
f791d5 69 REQUIRED_PACKAGES += system/library