about summary refs log tree commit diff
path: root/pkgs/development/python-modules/cchardet/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/cchardet/default.nix')
-rw-r--r--pkgs/development/python-modules/cchardet/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/cchardet/default.nix b/pkgs/development/python-modules/cchardet/default.nix
new file mode 100644
index 000000000000..5596b3e37e59
--- /dev/null
+++ b/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 ];
+  };
+}