summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-snappy
diff options
context:
space:
mode:
authorWinter <winter@winter.cafe>2022-08-06 12:32:04 -0400
committerWinter <winter@winter.cafe>2022-08-13 14:09:43 -0400
commit19adc3341cf3adfdbd408646aedbf8e62ce3eece (patch)
treeeee99752039b7cba720978e962c0f3ee1685ebf4 /pkgs/development/python-modules/python-snappy
parente8fbb38a51380fe6e56351b5750dddcccff79c4c (diff)
treewide: migrate to pythonPackages.unittestCheckHook
Diffstat (limited to 'pkgs/development/python-modules/python-snappy')
-rw-r--r--pkgs/development/python-modules/python-snappy/default.nix8
1 files changed, 2 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/python-snappy/default.nix b/pkgs/development/python-modules/python-snappy/default.nix
index 397fcaa3dd0d..d75c80d5e415 100644
--- a/pkgs/development/python-modules/python-snappy/default.nix
+++ b/pkgs/development/python-modules/python-snappy/default.nix
@@ -4,7 +4,7 @@
, isPyPy
, snappy
, cffi
-, python
+, unittestCheckHook
}:
buildPythonPackage rec {
@@ -21,11 +21,7 @@ buildPythonPackage rec {
propagatedBuildInputs = lib.optional isPyPy cffi;
- checkPhase = ''
- runHook preCheck
- ${python.interpreter} -m unittest discover
- runHook postCheck
- '';
+ checkInputs = [ unittestCheckHook ];
meta = with lib; {
description = "Python library for the snappy compression library from Google";