gpgme: package python3 bindings

Closes #33129.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Michael De La Rue 2018-10-18 13:55:26 +01:00 committed by FX Coudert
parent 48952baf84
commit 0736053011

View file

@ -12,6 +12,7 @@ class Gpgme < Formula
sha256 "bb4ac5c5bbc9f3f2c54febe2e872c780337d6c8612124778b76826371c673492" => :sierra sha256 "bb4ac5c5bbc9f3f2c54febe2e872c780337d6c8612124778b76826371c673492" => :sierra
end end
depends_on "python" => [:build, :test]
depends_on "swig" => :build depends_on "swig" => :build
depends_on "gnupg" depends_on "gnupg"
depends_on "libassuan" depends_on "libassuan"
@ -32,5 +33,6 @@ class Gpgme < Formula
test do test do
assert_match version.to_s, shell_output("#{bin}/gpgme-tool --lib-version") assert_match version.to_s, shell_output("#{bin}/gpgme-tool --lib-version")
system "python2.7", "-c", "import gpg; print gpg.version.versionstr" system "python2.7", "-c", "import gpg; print gpg.version.versionstr"
system "python3", "-c", "import gpg; print(gpg.version.versionstr)"
end end
end end