Skip to content

Commit

Permalink
Merge pull request #51937 from ivan/add-cchardet
Browse files Browse the repository at this point in the history
pythonPackages.cchardet: init at 2.1.4
  • Loading branch information
Mic92 committed Dec 13, 2018
2 parents 2727774 + 76dc4b5 commit 3d4cb55
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pkgs/development/python-modules/cchardet/default.nix
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -1178,6 +1178,8 @@ in {

cccolutils = callPackage ../development/python-modules/cccolutils {};

cchardet = callPackage ../development/python-modules/cchardet { };

CDDB = callPackage ../development/python-modules/cddb { };

cntk = callPackage ../development/python-modules/cntk { };
Expand Down

0 comments on commit 3d4cb55

Please sign in to comment.