4458N/A#
4458N/A# CDDL HEADER START
4458N/A#
4458N/A# The contents of this file are subject to the terms of the
4458N/A# Common Development and Distribution License (the "License").
4458N/A# You may not use this file except in compliance with the License.
4458N/A#
4458N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4458N/A# or http://www.opensolaris.org/os/licensing.
4458N/A# See the License for the specific language governing permissions
4458N/A# and limitations under the License.
4458N/A#
4458N/A# When distributing Covered Code, include this CDDL HEADER in each
4458N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4458N/A# If applicable, add the following below this CDDL HEADER, with the
4458N/A# fields enclosed by brackets "[]" replaced with your own identifying
4458N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4458N/A#
4458N/A# CDDL HEADER END
4458N/A#
4458N/A
4458N/A#
5484N/A# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
4458N/A#
4458N/A
4458N/Ainclude ../../../make-rules/shared-macros.mk
4458N/A
4458N/ACOMPONENT_NAME= cryptography
5568N/ACOMPONENT_VERSION= 1.2.3
4458N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4458N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
4458N/ACOMPONENT_ARCHIVE_HASH= \
5568N/A sha256:8eb11c77dd8e73f48df6b2f7a7e16173fe0fe8fdfe266232832e88477e08454e
4458N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
4458N/ACOMPONENT_PROJECT_URL= https://cryptography.io/
4458N/ACOMPONENT_BUGDB= python-mod/cryptography
4458N/A
5568N/ATPNO= 27254
4458N/A
4458N/Ainclude $(WS_MAKE_RULES)/prep.mk
4458N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
4458N/Ainclude $(WS_MAKE_RULES)/ips.mk
4458N/A
4458N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
4458N/A
4892N/A# Use the CFFI version in the gate because if the CFFI version changes
4892N/A# everything using CFFI will break.
4892N/ACFFI = $(WS_COMPONENTS)/python/cffi/build/prototype/$(MACH)/$(PYTHON_LIB)
4458N/A
4892N/ACOMPONENT_BUILD_ENV += PYTHONPATH=$(CFFI)
4892N/ACOMPONENT_INSTALL_ENV += PYTHONPATH=$(CFFI)
4458N/A
4458N/A# common targets
4458N/Abuild: $(BUILD_32_and_64)
4458N/A
4458N/Ainstall: $(INSTALL_32_and_64)
4458N/A
4458N/A#
5484N/A# tests require cryptography_vectors, iso8601, pretend, pytest>= 2.8.7,
5484N/A# hypothesis>=1.11.4 and pyasn1_modules, some of which have not yet integrated.
5484N/A# On a i386 kernel zone with the test dependencies installed, test results are:
5484N/A# Python2.7: 74000 passed, 6136 skipped
5484N/A# Python3.4: 74000 passed, 6136 skipped
5484N/A# Python3.5: 74000 passed, 6136 skipped
4458N/A#
4458N/Atest: $(NO_TESTS)
4458N/A
5484N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
4458N/A
4941N/AREQUIRED_PACKAGES += library/python/cffi
4458N/AREQUIRED_PACKAGES += library/security/openssl
4458N/AREQUIRED_PACKAGES += system/library