From a91f8063d8ffb3f08b5eaea2da29fee6477f129a Mon Sep 17 00:00:00 2001 From: Habib Alamin Date: Mon, 6 Feb 2017 11:08:33 +0000 Subject: [PATCH] proselint 0.7.0 (new formula) Closes #9682. Signed-off-by: ilovezfs --- Formula/proselint.rb | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Formula/proselint.rb diff --git a/Formula/proselint.rb b/Formula/proselint.rb new file mode 100644 index 0000000000..60982b47e1 --- /dev/null +++ b/Formula/proselint.rb @@ -0,0 +1,35 @@ +class Proselint < Formula + include Language::Python::Virtualenv + + desc "Linter for prose" + homepage "http://proselint.com" + url "https://files.pythonhosted.org/packages/e6/78/c46f694a0e43ce47d0d6ae089f750131544018dc1119fc7da58ffd4b1e03/proselint-0.7.0.tar.gz" + sha256 "094d808d44bf1a60dcb1465749be5cc44f4f6c146c04bc5f28976a833786e830" + head "https://github.com/amperser/proselint.git" + + depends_on :python if MacOS.version <= :snow_leopard + + resource "click" do + url "https://files.pythonhosted.org/packages/95/d9/c3336b6b5711c3ab9d1d3a80f1a3e2afeb9d8c02a7166462f6cc96570897/click-6.7.tar.gz" + sha256 "f15516df478d5a56180fbf80e68f206010e6d160fc39fa508b65e035fd75130b" + end + + resource "future" do + url "https://files.pythonhosted.org/packages/00/2b/8d082ddfed935f3608cc61140df6dcbf0edea1bc3ab52fb6c29ae3e81e85/future-0.16.0.tar.gz" + sha256 "e39ced1ab767b5936646cedba8bcce582398233d6a627067d4c6a454c90cfedb" + end + + resource "six" do + url "https://files.pythonhosted.org/packages/b3/b2/238e2590826bfdd113244a40d9d3eb26918bd798fc187e2360a8367068db/six-1.10.0.tar.gz" + sha256 "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a" + end + + def install + virtualenv_install_with_resources + end + + test do + output = pipe_output("#{bin}/proselint --compact -", "John is very unique.") + assert_match /weasel_words\.very.*uncomparables/m, output + end +end