nixpkgs-suyu/pkgs/development/python-modules/cchardet/default.nix
2019-11-22 08:37:04 +01:00

28 lines
582 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, python
, nose
}:
buildPythonPackage rec {
pname = "cchardet";
version = "2.1.5";
src = fetchPypi {
inherit pname version;
sha256 = "240efe3f255f916769458343840b9c6403cf3192720bc5129792cbcb88bf72fb";
};
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 ];
};
}