2016-10-14 16:01:50 +02:00
|
|
|
from os.path import join
|
2016-10-14 14:07:10 +02:00
|
|
|
from toolchain import CythonRecipe
|
|
|
|
|
|
|
|
|
|
|
|
class CryptographyRecipe(CythonRecipe):
|
|
|
|
name = "cryptography"
|
|
|
|
version = "1.5.2"
|
|
|
|
url = (
|
|
|
|
"https://pypi.python.org/packages/03/1a/"
|
|
|
|
"60984cb85cc38c4ebdfca27b32a6df6f1914959d8790f5a349608c78be61/"
|
|
|
|
"cryptography-{version}.tar.gz"
|
|
|
|
)
|
2016-10-14 17:59:39 +02:00
|
|
|
depends = ["host_setuptools", "cffi", "six", "idna", "pyasn1", "enum34"]
|
2016-10-14 14:07:10 +02:00
|
|
|
cythonize = False
|
|
|
|
|
2016-10-14 17:59:39 +02:00
|
|
|
#def get_recipe_env(self, arch):
|
|
|
|
# env = super(CryptographyRecipe, self).get_recipe_env(arch)
|
|
|
|
# env["CC"] += " -I{}".format(
|
|
|
|
# join(self.ctx.dist_dir, "include", arch.arch, "libffi"))
|
|
|
|
# return env
|
2016-10-14 14:07:10 +02:00
|
|
|
|
|
|
|
recipe = CryptographyRecipe()
|