class Pferd < Formula include Language::Python::Virtualenv desc "Programm zum Flotten Einfachen Runterladen von Dateien" homepage "https://github.com/Garmelon/PFERD" url "https://files.pythonhosted.org/packages/f4/67/72c34ac306296b5aee22f8894d1e45be95b88174398b01c1b19961d5acc8/pferd-3.4.3.tar.gz" sha256 "ca5b26f45edff90a2dd4ef384599775ceb7caf35c4cb2e17da1fbe1f46bf5eca" license "MIT" bottle do rebuild 1 sha256 cellar: :any_skip_relocation, arm64_ventura: "6ec68be5d8d9d58f3490757a5fa143c0e8956fec50f12cd76d9cadd15d23c8c3" sha256 cellar: :any_skip_relocation, arm64_monterey: "529aea00e2c2221edcb0e40e34a0868b703e8ad5519948e5bbf1beebda020690" sha256 cellar: :any_skip_relocation, arm64_big_sur: "f65ce4a5e39724f71d08e6cd8fcdeca5071f19b71cfedd4bdcf2de0e3ac8872e" sha256 cellar: :any_skip_relocation, ventura: "a9205c7e7fea6c05e0b1b6d7e6039889c9da2e0475e5226ec82aba4cc30ba2d9" sha256 cellar: :any_skip_relocation, monterey: "7945a6c4dcfce5a6b3d1442a4bf2846570db1fecab354087cb5a961c8d1b510a" sha256 cellar: :any_skip_relocation, big_sur: "f63a580d5a07d442d6449c7f6918b4024ed6f66fa279153b37c79c854cea3390" sha256 cellar: :any_skip_relocation, x86_64_linux: "196abe7b45f49587150a12448130cfecb05a3dcd7ad90273746af90af99a6d2d" end depends_on "pygments" depends_on "python@3.11" resource "aiohttp" do url "https://files.pythonhosted.org/packages/ff/4f/62d9859b7d4e6dc32feda67815c5f5ab4421e6909e48cbc970b6a40d60b7/aiohttp-3.8.3.tar.gz" sha256 "3828fb41b7203176b82fe5d699e0d845435f2374750a44b480ea6b930f6be269" end resource "aiosignal" do url "https://files.pythonhosted.org/packages/ae/67/0952ed97a9793b4958e5736f6d2b346b414a2cd63e82d05940032f45b32f/aiosignal-1.3.1.tar.gz" sha256 "54cd96e15e1649b75d6c87526a6ff0b6c1b0dd3459f43d9ca11d48c339b68cfc" end resource "async-timeout" do url "https://files.pythonhosted.org/packages/54/6e/9678f7b2993537452710ffb1750c62d2c26df438aa621ad5fa9d1507a43a/async-timeout-4.0.2.tar.gz" sha256 "2163e1640ddb52b7a8c80d0a67a08587e5d245cc9c553a74a847056bc2976b15" end resource "attrs" do url "https://files.pythonhosted.org/packages/21/31/3f468da74c7de4fcf9b25591e682856389b3400b4b62f201e65f15ea3e07/attrs-22.2.0.tar.gz" sha256 "c9227bfc2f01993c03f68db37d1d15c9690188323c067c641f1a35ca58185f99" end resource "beautifulsoup4" do url "https://files.pythonhosted.org/packages/75/f8/de84282681c5a8307f3fff67b64641627b2652752d49d9222b77400d02b8/beautifulsoup4-4.11.2.tar.gz" sha256 "bc4bdda6717de5a2987436fb8d72f45dc90dd856bdfd512a1314ce90349a0106" 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/a1/34/44964211e5410b051e4b8d2869c470ae8a68ae274953b1c7de6d98bbcf94/charset-normalizer-2.1.1.tar.gz" sha256 "5a3d016c7c547f69d6f81fb0db9449ce888b418b5b9952cc5e6e66843e9dd845" end resource "frozenlist" do url "https://files.pythonhosted.org/packages/e9/10/d629476346112b85c912527b9080944fd2c39a816c2225413dbc0bb6fcc0/frozenlist-1.3.3.tar.gz" sha256 "58bcc55721e8a90b88332d6cd441261ebb22342e238296bb330968952fbb3a6a" 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 "markdown-it-py" do url "https://files.pythonhosted.org/packages/33/e9/ac8a93e9eda3891ecdfecf5e01c060bbd2c44d4e3e77efc83b9c7ce9db32/markdown-it-py-2.1.0.tar.gz" sha256 "cf7e59fed14b5ae17c0006eff14a2d9a00ed5f3a846148153899a0224e2c07da" end resource "mdurl" do url "https://files.pythonhosted.org/packages/d6/54/cfe61301667036ec958cb99bd3efefba235e65cdeb9c84d24a8293ba1d90/mdurl-0.1.2.tar.gz" sha256 "bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba" 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 "multidict" do url "https://files.pythonhosted.org/packages/4a/15/bd620f7a6eb9aa5112c4ef93e7031bcd071e0611763d8e17706ef8ba65e0/multidict-6.0.4.tar.gz" sha256 "3666906492efb76453c0e7b97f2cf459b0682e7402c0489a95484965dbc1da49" end resource "rich" do url "https://files.pythonhosted.org/packages/68/31/b8934896818c885001aeb7df388ba0523ea3ec88ad31805983d9b0480a50/rich-13.3.1.tar.gz" sha256 "125d96d20c92b946b983d0d392b84ff945461e5a06d3867e9f9e575f8697b67f" end resource "soupsieve" do url "https://files.pythonhosted.org/packages/f3/03/bac179d539362319b4779a00764e95f7542f4920084163db6b0fd4742d38/soupsieve-2.3.2.post1.tar.gz" sha256 "fc53893b3da2c33de295667a0e19f078c14bf86544af307354de5fcf12a3f30d" end resource "yarl" do url "https://files.pythonhosted.org/packages/c4/1e/1b204050c601d5cd82b45d5c8f439cb6f744a2ce0c0a6f83be0ddf0dc7b2/yarl-1.8.2.tar.gz" sha256 "49d43402c6e3013ad0978602bf6bf5328535c48d192304b91b97a3c6790b1562" 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 assert_equal "PFERD #{version} (#{homepage})", shell_output("#{bin}/pferd --version").strip assert_match "Error Failed to load config", shell_output("#{bin}/pferd", 1) (testpath/"pferd.cfg").write <<~EOS [crawl:Foo] type = kit-ilias-web target = 1234567 EOS assert_match "key 'auth': Missing value", shell_output("#{bin}/pferd -c #{testpath}/pferd.cfg", 1) end end