about summary refs log tree commit diff
path: root/pkgs/development/python-modules/langdetect
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-07-12 09:24:17 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-07-12 09:24:17 +0200
commit7bea8f176278d32537ef919cd11981332dc42c73 (patch)
tree6956bc04fe50d806966ccc66543b7c17399fdf0c /pkgs/development/python-modules/langdetect
parentdbdde6249fa068e1d514aeeaeb4618f8dbbb63cb (diff)
python3Packages.langdetect: 1.0.7 -> 1.0.9
Diffstat (limited to 'pkgs/development/python-modules/langdetect')
-rw-r--r--pkgs/development/python-modules/langdetect/default.nix22
1 files changed, 17 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/langdetect/default.nix b/pkgs/development/python-modules/langdetect/default.nix
index 57fee2664cdfb..2b9f87fdd81a4 100644
--- a/pkgs/development/python-modules/langdetect/default.nix
+++ b/pkgs/development/python-modules/langdetect/default.nix
@@ -1,16 +1,28 @@
-{ lib, buildPythonPackage, fetchPypi, six }:
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pytestCheckHook
+, six
+}:
 
 buildPythonPackage rec {
   pname = "langdetect";
-  version = "1.0.7";
+  version = "1.0.9";
 
   src = fetchPypi {
     inherit pname version;
-    extension = "zip";
-    sha256 = "0c5zm6c7xzsigbb9c7v4r33fcpz911zscfwvh3dq1qxdy3ap18ci";
+    sha256 = "1805svvb7xjm4sf1j7b6nc3409x37pd1xmabfwwjf1ldkzwgxhfb";
   };
 
-  propagatedBuildInputs = [ six ];
+  propagatedBuildInputs = [
+    six
+  ];
+
+  checkInputs = [
+    pytestCheckHook
+  ];
+
+  pythonImportsCheck = [ "langdetect" ];
 
   meta = with lib; {
     description = "Python port of Google's language-detection library";