diff --git a/Formula/a/alot.rb b/Formula/a/alot.rb index 0990800d26dbf..118f8edf84b0d 100644 --- a/Formula/a/alot.rb +++ b/Formula/a/alot.rb @@ -3,21 +3,19 @@ class Alot < Formula desc "Text mode MUA using notmuch mail" homepage "https://github.com/pazz/alot" - url "https://github.com/pazz/alot/archive/refs/tags/0.10.tar.gz" - sha256 "71f382aa751fb90fde1a06a0a4ba43628ee6aa6d41b5cd53c8701fd7c5ab6e6e" + url "https://github.com/pazz/alot.git", + tag: "0.11", + revision: "a8a108e2344656a13bca21211ccc0df2414cbef6" license "GPL-3.0-only" - revision 3 head "https://github.com/pazz/alot.git", branch: "master" bottle do - rebuild 1 - sha256 cellar: :any_skip_relocation, arm64_sonoma: "23e5824e8cf26c2aa6ea651f2ff13b97696df3a6e8f561071180f571207b8c25" - sha256 cellar: :any_skip_relocation, arm64_ventura: "e962eb1abad071cc03a0c457fdf92cc8c097046c1c178327a130f42ef78bd84b" - sha256 cellar: :any_skip_relocation, arm64_monterey: "648e5c3b6e2d1c507f65def7ad3404ebe97aa6320af845b9dcea38009173edb9" - sha256 cellar: :any_skip_relocation, sonoma: "3be080d8486d70bfb38181af2f5c3b3dfa2814dacc630264f2dfef715ce7e69b" - sha256 cellar: :any_skip_relocation, ventura: "6013101a67b458eb5bd1496ecae5c072630d01d060a47d3558ad5e83abae62e6" - sha256 cellar: :any_skip_relocation, monterey: "87b188971e07ea63bbf0093724e13d8f180b0e19415c01162c1549d84f38c7f3" - sha256 cellar: :any_skip_relocation, x86_64_linux: "67782be14e5f590ddbc31568eaa79a96f7d5e04a6f3e25df0ff7f961b6c33c76" + sha256 cellar: :any_skip_relocation, arm64_sequoia: "cd0a1ebfd4d60d47d876cf52c1575b00205e375f92a17bcd7e81eaa01748952b" + sha256 cellar: :any_skip_relocation, arm64_sonoma: "667e4538b356855cb1bb271ae6b6c376f1b9c8e454f7b0b3e8930ed9a2b540a6" + sha256 cellar: :any_skip_relocation, arm64_ventura: "a4c0dd05962265e62fc1297f6aac26e1903a907645137928ccd5a80f6b344e40" + sha256 cellar: :any_skip_relocation, sonoma: "d7751a31767c3a20e159114932e6bb1926bf12268b133f9a0faffc3085238e6c" + sha256 cellar: :any_skip_relocation, ventura: "69cddd838f3cf37dd4f49eb998aad613238214ea6fcc62c028429f287bf320dc" + sha256 cellar: :any_skip_relocation, x86_64_linux: "0b4bde5ef07d789852b596d14a1c3f646a3303cb1e2df208e9fbf9734fb7c6bb" end depends_on "sphinx-doc" => :build @@ -28,13 +26,13 @@ class Alot < Formula depends_on "python@3.12" resource "attrs" do - url "https://files.pythonhosted.org/packages/97/90/81f95d5f705be17872843536b1868f351805acf6971251ff07c1b8334dbb/attrs-23.1.0.tar.gz" - sha256 "6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc50e015" + url "https://files.pythonhosted.org/packages/fc/0f/aafca9af9315aee06a89ffde799a10a582fe8de76c563ee80bbcdc08b3fb/attrs-24.2.0.tar.gz" + sha256 "5cfb1b9148b5b086569baec03f20d7b6bf3bcacc9a42bebf87ffaaca362f6346" end resource "automat" do - url "https://files.pythonhosted.org/packages/7a/7b/9c3d26d8a0416eefbc0428f168241b32657ca260fb7ef507596ff5c2f6c4/Automat-22.10.0.tar.gz" - sha256 "e56beb84edad19dcc11d30e8d9b895f75deeb5ef5e96b84a467066b3b84bb04e" + url "https://files.pythonhosted.org/packages/8d/2d/ede4ad7fc34ab4482389fa3369d304f2fa22e50770af706678f6a332fa82/automat-24.8.1.tar.gz" + sha256 "b34227cf63f6325b8ad2399ede780675083e439b20c323d376373d8ee6306d88" end resource "configobj" do @@ -53,13 +51,13 @@ class Alot < Formula end resource "idna" do - url "https://files.pythonhosted.org/packages/8b/e1/43beb3d38dba6cb420cefa297822eac205a277ab43e5ba5d5c46faf96438/idna-3.4.tar.gz" - sha256 "814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4" + url "https://files.pythonhosted.org/packages/00/6f/93e724eafe34e860d15d37a4f72a1511dd37c43a76a8671b22a15029d545/idna-3.9.tar.gz" + sha256 "e5c5dafde284f26e9e0f28f6ea2d6400abd5ca099864a67f576f3981c6476124" end resource "incremental" do - url "https://files.pythonhosted.org/packages/86/42/9e87f04fa2cd40e3016f27a4b4572290e95899c6dce317e2cdb580f3ff09/incremental-22.10.0.tar.gz" - sha256 "912feeb5e0f7e0188e6f42241d2f450002e11bbc0937c65865045854c24c0bd0" + url "https://files.pythonhosted.org/packages/27/87/156b374ff6578062965afe30cc57627d35234369b3336cf244b240c8d8e6/incremental-24.7.2.tar.gz" + sha256 "fb4f1d47ee60efe87d4f6f0ebb5f70b9760db2b2574c59c8e8912be4ebd464c9" end resource "mock" do @@ -73,8 +71,8 @@ class Alot < Formula end resource "setuptools" do - url "https://files.pythonhosted.org/packages/c9/3d/74c56f1c9efd7353807f8f5fa22adccdba99dc72f34311c30a69627a0fad/setuptools-69.1.0.tar.gz" - sha256 "850894c4195f09c4ed30dba56213bf7c3f21d86ed6bdaafb5df5972593bfc401" + url "https://files.pythonhosted.org/packages/3e/2c/f0a538a2f91ce633a78daaeb34cbfb93a54bd2132a6de1f6cec028eee6ef/setuptools-74.1.2.tar.gz" + sha256 "95b40ed940a1c67eb70fc099094bd6e99c6ee7c23aa2306f4d2697ba7916f9c6" end resource "six" do @@ -83,18 +81,18 @@ class Alot < Formula end resource "twisted" do - url "https://files.pythonhosted.org/packages/5b/6c/d58b1bfc47cf02bd282f32fee9bd74d834fb2a92fdedf3e56f1ddb778c18/twisted-23.8.0.tar.gz" - sha256 "3c73360add17336a622c0d811c2a2ce29866b6e59b1125fd6509b17252098a24" + url "https://files.pythonhosted.org/packages/8b/bf/f30eb89bcd14a21a36b4cd3d96658432d4c590af3c24bbe08ea77fa7bbbb/twisted-24.7.0.tar.gz" + sha256 "5a60147f044187a127ec7da96d170d49bcce50c6fd36f594e60f4587eff4d394" end resource "typing-extensions" do - url "https://files.pythonhosted.org/packages/0c/1d/eb26f5e75100d531d7399ae800814b069bc2ed2a7410834d57374d010d96/typing_extensions-4.9.0.tar.gz" - sha256 "23478f88c37f27d76ac8aee6c905017a143b0b1b886c3c9f66bc2fd94f9f5783" + url "https://files.pythonhosted.org/packages/df/db/f35a00659bc03fec321ba8bce9420de607a1d37f8342eee1863174c69557/typing_extensions-4.12.2.tar.gz" + sha256 "1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8" end resource "urwid" do - url "https://files.pythonhosted.org/packages/81/f4/fa6da5de99e11e60d826567609eaa815146f835285a26f6c0f61e6015e2c/urwid-2.2.3.tar.gz" - sha256 "e4516d55dcee6bd012b3e72a10c75f2866c63a740f0ec4e1ada05c1e1cc02e34" + url "https://files.pythonhosted.org/packages/85/b7/516b0bbb7dd9fc313c6443b35d86b6f91b3baa83d2c4016e4d8e0df5a5e3/urwid-2.6.15.tar.gz" + sha256 "9ecc57330d88c8d9663ffd7092a681674c03ff794b6330ccfef479af7aa9671b" end resource "urwidtrees" do @@ -102,24 +100,25 @@ class Alot < Formula sha256 "50b19c06b03a5a73e561757a26d449cfe0c08afabe5c0f3cd4435596bdddaae9" end + resource "wcwidth" do + url "https://files.pythonhosted.org/packages/6c/63/53559446a878410fc5a5974feb13d31d78d752eb18aeba59c7fef1af7598/wcwidth-0.2.13.tar.gz" + sha256 "72ea0c06399eb286d978fdedb6923a9eb47e1c486ce63e9b4e64fc18303972b5" + end + resource "zope-interface" do - url "https://files.pythonhosted.org/packages/87/03/6b85c1df2dca1b9acca38b423d1e226d8ffdf30ebd78bcb398c511de8b54/zope.interface-6.1.tar.gz" - sha256 "2fdc7ccbd6eb6b7df5353012fbed6c3c5d04ceaca0038f75e601060e95345309" + url "https://files.pythonhosted.org/packages/c8/83/7de03efae7fc9a4ec64301d86e29a324f32fe395022e3a5b1a79e376668e/zope.interface-7.0.3.tar.gz" + sha256 "cd2690d4b08ec9eaf47a85914fe513062b20da78d10d6d789a792c0b20307fb1" end def install - virtualenv_install_with_resources - - # Add path configuration file to use notmuch CFFI bindings - site_packages = Language::Python.site_packages("python3.12") - pth_contents = "import site; site.addsitedir('#{Formula["notmuch"].opt_libexec/site_packages}')\n" - (libexec/site_packages/"homebrew-notmuch2.pth").write pth_contents + venv = virtualenv_install_with_resources pkgshare.install Pathname("extra").children - [Pathname("extra/completion")] zsh_completion.install "extra/completion/alot-completion.zsh" => "_alot" ENV["LC_ALL"] = "en_US.UTF-8" ENV["SPHINXBUILD"] = Formula["sphinx-doc"].opt_bin/"sphinx-build" + ENV.prepend_path "PYTHONPATH", venv.site_packages cd "docs" do system "make", "pickle" system "make", "man", "html"