Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51937 from ivan/add-cchardet
pythonPackages.cchardet: init at 2.1.4
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ lib | ||
, buildPythonPackage | ||
, fetchPypi | ||
, python | ||
, nose | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "cchardet"; | ||
version = "2.1.4"; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
sha256 = "1h3wajwwgqpyb1q44lzr8djbcwr4y8cphph7kyscz90d83h4b5yc"; | ||
}; | ||
|
||
checkInputs = [ nose ]; | ||
checkPhase = '' | ||
${python.interpreter} setup.py nosetests | ||
''; | ||
|
||
meta = { | ||
description = "High-speed universal character encoding detector"; | ||
homepage = https://github.com/PyYoshi/cChardet; | ||
license = lib.licenses.mpl11; | ||
maintainers = with lib.maintainers; [ ivan ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters