class Urlwatch < Formula include Language::Python::Virtualenv desc "Get notified when a webpage changes" homepage "https://thp.io/2008/urlwatch/" url "https://files.pythonhosted.org/packages/e1/1d/283de30cfc04c3601fc73eca4f1b2a5cb5a25a9fa715eb2bf9678ab45d0d/urlwatch-2.25.tar.gz" sha256 "6802297d3318286e7f3d36b9a4567a2fb09b0ae779d4b76811dd29a7281c1f8a" license "BSD-3-Clause" revision 1 bottle do rebuild 3 sha256 cellar: :any_skip_relocation, arm64_ventura: "5c6a77e60638644a61731f6455148c73d591a11e8071a32498f9aa5d98ad0610" sha256 cellar: :any_skip_relocation, arm64_monterey: "d9286909229a207731997c98bbb87b6315554ed22cd9cbb9d9ae5ef3e65bafeb" sha256 cellar: :any_skip_relocation, arm64_big_sur: "3b3cab7c4603e7d21bf6be0f902c58e13790a123e13a395eaee5d14ff123af5d" sha256 cellar: :any_skip_relocation, ventura: "6b8835ae3708fc47ce9d5803ade1cb16b0968d95af125e72d3cc087d17bbb6b6" sha256 cellar: :any_skip_relocation, monterey: "8ce65dba7f4feda1bd0a211c721b868dbc478c46e586956a657a48cc540f9165" sha256 cellar: :any_skip_relocation, big_sur: "cbea0b6c157a9a22f4b444161ca4e23dc2c7e06086c8e07f917170d00a2dc0d2" sha256 cellar: :any_skip_relocation, x86_64_linux: "7c271b410bbce414548ba62cc88f8e41a4282439c745ddc405001c6dba20ac48" end depends_on "python@3.11" depends_on "pyyaml" uses_from_macos "libxml2" uses_from_macos "libxslt" resource "appdirs" do url "https://files.pythonhosted.org/packages/d7/d8/05696357e0311f5b5c316d7b95f46c669dd9c15aaeecbb48c7d0aeb88c40/appdirs-1.4.4.tar.gz" sha256 "7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41" end resource "certifi" do url "https://files.pythonhosted.org/packages/37/f7/2b1b0ec44fdc30a3d31dfebe52226be9ddc40cd6c0f34ffc8923ba423b69/certifi-2022.12.7.tar.gz" sha256 "35824b4c3a97115964b408844d64aa14db1cc518f6562e8d7261699d1350a9e3" end resource "charset-normalizer" do url "https://files.pythonhosted.org/packages/96/d7/1675d9089a1f4677df5eb29c3f8b064aa1e70c1251a0a8a127803158942d/charset-normalizer-3.0.1.tar.gz" sha256 "ebea339af930f8ca5d7a699b921106c6e29c617fe9606fa7baa043c1cdae326f" end resource "cssselect" do url "https://files.pythonhosted.org/packages/d1/91/d51202cc41fbfca7fa332f43a5adac4b253962588c7cc5a54824b019081c/cssselect-1.2.0.tar.gz" sha256 "666b19839cfaddb9ce9d36bfe4c969132c647b92fc9088c4e23f786b30f1b3dc" end resource "idna" do url "https://files.pythonhosted.org/packages/8b/e1/43beb3d38dba6cb420cefa297822eac205a277ab43e5ba5d5c46faf96438/idna-3.4.tar.gz" sha256 "814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4" end resource "importlib-metadata" do url "https://files.pythonhosted.org/packages/90/07/6397ad02d31bddf1841c9ad3ec30a693a3ff208e09c2ef45c9a8a5f85156/importlib_metadata-6.0.0.tar.gz" sha256 "e354bedeb60efa6affdcc8ae121b73544a7aa74156d047311948f6d711cd378d" end resource "jaraco.classes" do url "https://files.pythonhosted.org/packages/bf/02/a956c9bfd2dfe60b30c065ed8e28df7fcf72b292b861dca97e951c145ef6/jaraco.classes-3.2.3.tar.gz" sha256 "89559fa5c1d3c34eff6f631ad80bb21f378dbcbb35dd161fd2c6b93f5be2f98a" end resource "keyring" do url "https://files.pythonhosted.org/packages/55/fe/282f4c205add8e8bb3a1635cbbac59d6def2e0891b145aa553a0e40dd2d0/keyring-23.13.1.tar.gz" sha256 "ba2e15a9b35e21908d0aaf4e0a47acc52d6ae33444df0da2b49d41a46ef6d678" end resource "lxml" do url "https://files.pythonhosted.org/packages/06/5a/e11cad7b79f2cf3dd2ff8f81fa8ca667e7591d3d8451768589996b65dec1/lxml-4.9.2.tar.gz" sha256 "2455cfaeb7ac70338b3257f41e21f0724f4b5b0c0e7702da67ee6c3640835b67" end resource "minidb" do url "https://files.pythonhosted.org/packages/20/d4/915ac3b905cf33f3a0df5c92619fad66ae2e23cecd8f21dbfa76a9a27133/minidb-2.0.7.tar.gz" sha256 "339fd231e3b34daecd3160946e0141585666ac57583882a14c4c69e597accca1" end resource "more-itertools" do url "https://files.pythonhosted.org/packages/13/b3/397aa9668da8b1f0c307bc474608653d46122ae0563d1d32f60e24fa0cbd/more-itertools-9.0.0.tar.gz" sha256 "5a6257e40878ef0520b1803990e3e22303a41b5714006c32a3fd8304b26ea1ab" end resource "requests" do url "https://files.pythonhosted.org/packages/9d/ee/391076f5937f0a8cdf5e53b701ffc91753e87b07d66bae4a09aa671897bf/requests-2.28.2.tar.gz" sha256 "98b1b2782e3c6c4904938b84c0eb932721069dfdb9134313beff7c83c2df24bf" end resource "urllib3" do url "https://files.pythonhosted.org/packages/c5/52/fe421fb7364aa738b3506a2d99e4f3a56e079c0a798e9f4fa5e14c60922f/urllib3-1.26.14.tar.gz" sha256 "076907bf8fd355cde77728471316625a4d2f7e713c125f51953bb5b3eecf4f72" end resource "zipp" do url "https://files.pythonhosted.org/packages/1f/29/54ba1934c45af649698410456fa8a78a475c82efd5c562e51011079458d1/zipp-3.12.1.tar.gz" sha256 "a3cac813d40993596b39ea9e93a18e8a2076d5c378b8bc88ec32ab264e04ad02" end def install virtualenv_install_with_resources end test do (testpath/"config.yaml").write("") (testpath/"urls.yaml").write("") output = shell_output("#{bin}/urlwatch --config #{testpath/"config.yaml"} " \ "--urls #{testpath/"urls.yaml"} --test-filter 1", 1) assert_match("Not found: '1'", output) end end