1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-24 19:08:30 +00:00
nixpkgs/pkgs/development/python-modules/cchardet/default.nix

29 lines
572 B
Nix
Raw Normal View History

2018-12-13 11:11:58 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, python
, nose
}:
buildPythonPackage rec {
pname = "cchardet";
version = "2.1.6";
2018-12-13 11:11:58 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "1cs6y59qhbal8fgbyjk2lpjykh8kfjhq16clfssylsddb4hgnsmp";
2018-12-13 11:11:58 +00:00
};
checkInputs = [ nose ];
checkPhase = ''
${python.interpreter} setup.py nosetests
'';
meta = {
description = "High-speed universal character encoding detector";
homepage = "https://github.com/PyYoshi/cChardet";
2018-12-13 11:11:58 +00:00
license = lib.licenses.mpl11;
maintainers = with lib.maintainers; [ ivan ];
};
}