nixpkgs/pkgs/development/python-modules/cchardet/default.nix

29 lines
582 B
Nix
Raw Normal View History

2018-12-13 14:11:58 +03:00
{ lib
, buildPythonPackage
, fetchPypi
, python
, nose
}:
buildPythonPackage rec {
pname = "cchardet";
2019-11-19 17:35:33 +03:00
version = "2.1.5";
2018-12-13 14:11:58 +03:00
src = fetchPypi {
inherit pname version;
2019-11-19 17:35:33 +03:00
sha256 = "240efe3f255f916769458343840b9c6403cf3192720bc5129792cbcb88bf72fb";
2018-12-13 14:11:58 +03:00
};
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 ];
};
}