class Todoman < Formula include Language::Python::Virtualenv desc "Simple CalDAV-based todo manager" homepage "https://todoman.readthedocs.io/" url "https://files.pythonhosted.org/packages/2d/b0/ffe9e812fa710579d07369763262e418cadb2a99fc5d0ec0d685c7f33a69/todoman-4.1.0.tar.gz" sha256 "ce3caa481d923e91da9b492b46509810a754e2d3ef857f5d20bc5a8e362b50c8" license "ISC" head "https://github.com/pimutils/todoman.git", branch: "main" bottle do sha256 cellar: :any_skip_relocation, arm64_monterey: "fbc49789ca82123ddb165380dc10fa598335b9c892b05012174f091185886e06" sha256 cellar: :any_skip_relocation, arm64_big_sur: "2ad8941910dd324c0c9a1eff79fec0313fef5a53bf547c632c24de57e396c5fb" sha256 cellar: :any_skip_relocation, monterey: "4da34ad0ce35739040ebac5ba8da6eba936a9fb67487ab6db6cf1b6db332b56e" sha256 cellar: :any_skip_relocation, big_sur: "72cac8ed69f61678a2e8b665b550e27694325811ab5ace67b60772a9c4d5831f" sha256 cellar: :any_skip_relocation, catalina: "6f5089d7b1405734c1a88c1caf07f1c995606cb8c41f61a80b04ea06d2d1756a" sha256 cellar: :any_skip_relocation, x86_64_linux: "8487a64b4a5ba1f7fa89426140d104e9c41e53de6a4008920bd2887867050194" end depends_on "python-tabulate" depends_on "python@3.9" depends_on "six" conflicts_with "devtodo", because: "both install a `todo` binary" resource "atomicwrites" do url "https://files.pythonhosted.org/packages/55/8d/74a75635f2c3c914ab5b3850112fd4b0c8039975ecb320e4449aa363ba54/atomicwrites-1.4.0.tar.gz" sha256 "ae70396ad1a434f9c7046fd2dd196fc04b12f9e91ffb859164193be8b6168a7a" end resource "click" do url "https://files.pythonhosted.org/packages/f4/09/ad003f1e3428017d1c3da4ccc9547591703ffea548626f47ec74509c5824/click-8.0.3.tar.gz" sha256 "410e932b050f5eed773c4cda94de75971c89cdb3155a72a0831139a79e5ecb5b" end resource "click-log" do url "https://files.pythonhosted.org/packages/22/44/3d73579b547f0790a2723728088c96189c8b52bd2ee3c3de8040efc3c1b8/click-log-0.3.2.tar.gz" sha256 "16fd1ca3fc6b16c98cea63acf1ab474ea8e676849dc669d86afafb0ed7003124" end resource "humanize" do url "https://files.pythonhosted.org/packages/8a/b6/e7d99d1cc225a069f3f7a906a213cb1a0148dac27119290c41dc257ffe53/humanize-3.13.1.tar.gz" sha256 "12f113f2e369dac7f35d3823f49262934f4a22a53a6d3d4c86b736f50db88c7b" end resource "icalendar" do url "https://files.pythonhosted.org/packages/1e/4b/b9e53b2fc4f7942c5698842005ad9e55dd4d932434f5bd1cf8acf3d06b01/icalendar-4.0.9.tar.gz" sha256 "cc73fa9c848744843046228cb66ea86cd8c18d73a51b140f7c003f760b84a997" end resource "parsedatetime" do url "https://files.pythonhosted.org/packages/a8/20/cb587f6672dbe585d101f590c3871d16e7aec5a576a1694997a3777312ac/parsedatetime-2.6.tar.gz" sha256 "4cb368fbb18a0b7231f4d76119165451c8d2e35951455dfee97c62a87b04d455" end resource "python-dateutil" do url "https://files.pythonhosted.org/packages/4c/c4/13b4776ea2d76c115c1d1b84579f3764ee6d57204f6be27119f13a61d0a9/python-dateutil-2.8.2.tar.gz" sha256 "0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86" end resource "pytz" do url "https://files.pythonhosted.org/packages/e3/8e/1cde9d002f48a940b9d9d38820aaf444b229450c0854bdf15305ce4a3d1a/pytz-2021.3.tar.gz" sha256 "acad2d8b20a1af07d4e4c9d2e9285c5ed9104354062f275f3fcd88dcef4f1326" end resource "pyxdg" do url "https://files.pythonhosted.org/packages/6f/2e/2251b5ae2f003d865beef79c8fcd517e907ed6a69f58c32403cec3eba9b2/pyxdg-0.27.tar.gz" sha256 "80bd93aae5ed82435f20462ea0208fb198d8eec262e831ee06ce9ddb6b91c5a5" end resource "urwid" do url "https://files.pythonhosted.org/packages/94/3f/e3010f4a11c08a5690540f7ebd0b0d251cc8a456895b7e49be201f73540c/urwid-2.1.2.tar.gz" sha256 "588bee9c1cb208d0906a9f73c613d2bd32c3ed3702012f51efe318a3f2127eae" end def install virtualenv_install_with_resources end test do ENV["LC_ALL"] = "en_US.UTF-8" (testpath/".config/todoman/config.py").write <<~EOS path = "#{testpath}/.calendar/*" date_format = "%Y-%m-%d" default_list = "Personal" EOS (testpath/".calendar/Personal").mkpath system "#{bin}/todo", "new", "newtodo" assert_match "newtodo", shell_output("#{bin}/todo list") end end