about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/karton-classifier/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/karton-classifier/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/karton-classifier/default.nix17
1 files changed, 9 insertions, 8 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/karton-classifier/default.nix b/nixpkgs/pkgs/development/python-modules/karton-classifier/default.nix
index ea9710ecd311..ca2703389b30 100644
--- a/nixpkgs/pkgs/development/python-modules/karton-classifier/default.nix
+++ b/nixpkgs/pkgs/development/python-modules/karton-classifier/default.nix
@@ -3,19 +3,22 @@
 , chardet
 , fetchFromGitHub
 , karton-core
-, python
+, pytestCheckHook
 , python_magic
+, pythonOlder
 }:
 
 buildPythonPackage rec {
   pname = "karton-classifier";
-  version = "1.1.0";
+  version = "1.2.0";
+
+  disabled = pythonOlder "3.7";
 
   src = fetchFromGitHub {
     owner = "CERT-Polska";
     repo = pname;
     rev = "v${version}";
-    sha256 = "0s09mzsw546klnvm59wzj9vdwd2hyzgxvapi20k86q3prs9ncds6";
+    sha256 = "sha256-AG2CtNMgXYfbdlOqB1ZdjMT8H67fsSMXTgiFg6K41IQ=";
   };
 
   propagatedBuildInputs = [
@@ -30,11 +33,9 @@ buildPythonPackage rec {
       --replace "python-magic==0.4.18" "python-magic"
   '';
 
-  checkPhase = ''
-    runHook preCheck
-    ${python.interpreter} -m unittest discover
-    runHook postCheck
-  '';
+  checkInputs = [
+    pytestCheckHook
+  ];
 
   pythonImportsCheck = [ "karton.classifier" ];