Skip to content

Commit

Permalink
chardet: renamed from python-chardet
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent committed Jun 24, 2024
1 parent 67c7484 commit 5829ca1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 49 deletions.
21 changes: 21 additions & 0 deletions Formula/c/chardet.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
class Chardet < Formula
include Language::Python::Virtualenv

desc "Python character encoding detector"
homepage "https://chardet.readthedocs.io/en/latest/"
url "https://files.pythonhosted.org/packages/f3/0d/f7b6ab21ec75897ed80c17d79b15951a719226b9fababf1e40ea74d69079/chardet-5.2.0.tar.gz"
sha256 "1b3b6ff479a8c414bc3fa2c0852995695c4a026dcd6d0633b2dd092ca39c1cf7"
license "LGPL-2.1-or-later"

depends_on "[email protected]"

def install
virtualenv_install_with_resources
end

test do
(testpath/"test.txt").write "你好"
output = shell_output("#{bin}/chardetect #{testpath}/test.txt")
assert_match "test.txt: utf-8 with confidence 0.7525", output
end
end
49 changes: 0 additions & 49 deletions Formula/p/python-chardet.rb

This file was deleted.

1 change: 1 addition & 0 deletions formula_renames.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
"prql-compiler": "prqlc",
"pyqt5": "pyqt@5",
"python-certifi": "certifi",
"python-chardet": "chardet",
"python-cryptography": "cryptography",
"qt5": "qt@5",
"racket": "minimal-racket",
Expand Down

0 comments on commit 5829ca1

Please sign in to comment.