blob: f1957a8ef25494646d92088d2d4637db971bfd43 [file] [log] [blame]
// Copyright 2019 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
python_library {
name: "py-cryptography",
host_supported: true,
srcs: [
"*.py",
"hazmat/*.py",
"hazmat/backends/*.py",
"hazmat/backends/openssl/*.py",
"hazmat/primitives/*.py",
"hazmat/primitives/twofactor/*.py",
"hazmat/primitives/serialization/*.py",
"hazmat/primitives/kdf/*.py",
"hazmat/primitives/asymmetric/*.py",
"hazmat/primitives/ciphers/*.py",
"hazmat/bindings/*.py",
"hazmat/bindings/openssl/*.py",
"x509/*.py",
],
version: {
py2: {
enabled: true,
},
py3: {
enabled: true,
},
},
libs: [
"py-asn1crypto",
"py-cffi",
"py-enum34",
"py-ipaddress",
"py-six",
],
data: [
":py-cryptography-libs",
],
pkg_path: "cryptography",
}
filegroup {
name: "py-cryptography-libs",
srcs: [
"hazmat/bindings/_constant_time.so",
"hazmat/bindings/_openssl.so",
"hazmat/bindings/_padding.so",
],
}