summary refs log tree commit diff
path: root/pkgs/applications/networking
diff options
context:
space:
mode:
authorJulien Moutinho <ju1m@users.noreply.github.com>2020-04-24 05:55:05 +0200
committerGitHub <noreply@github.com>2020-04-23 23:55:05 -0400
commit3fe7332383518244afb5edd443ed12e1e321cdaa (patch)
tree6c12ab5a612a95b0119f321b3a57b04549037683 /pkgs/applications/networking
parent5e6adf78e9644e24ca494c3ba64400e5eea5bd1d (diff)
downloadnixpkgs-3fe7332383518244afb5edd443ed12e1e321cdaa.tar
nixpkgs-3fe7332383518244afb5edd443ed12e1e321cdaa.tar.gz
nixpkgs-3fe7332383518244afb5edd443ed12e1e321cdaa.tar.bz2
nixpkgs-3fe7332383518244afb5edd443ed12e1e321cdaa.tar.lz
nixpkgs-3fe7332383518244afb5edd443ed12e1e321cdaa.tar.xz
nixpkgs-3fe7332383518244afb5edd443ed12e1e321cdaa.tar.zst
nixpkgs-3fe7332383518244afb5edd443ed12e1e321cdaa.zip
stig: use pytestCheckHook (#85364)
Diffstat (limited to 'pkgs/applications/networking')
-rw-r--r--pkgs/applications/networking/p2p/stig/default.nix24
1 files changed, 15 insertions, 9 deletions
diff --git a/pkgs/applications/networking/p2p/stig/default.nix b/pkgs/applications/networking/p2p/stig/default.nix
index 325dc653e5b..6b1a7ace902 100644
--- a/pkgs/applications/networking/p2p/stig/default.nix
+++ b/pkgs/applications/networking/p2p/stig/default.nix
@@ -1,9 +1,9 @@
 { lib
 , fetchFromGitHub
-, python3
+, python3Packages
 }:
 
-python3.pkgs.buildPythonApplication rec {
+python3Packages.buildPythonApplication rec {
   pname = "stig";
   # This project has a different concept for pre release / alpha,
   # Read the project's README for details: https://github.com/rndusr/stig#stig
@@ -26,7 +26,7 @@ python3.pkgs.buildPythonApplication rec {
       --replace "urwidtrees>=1.0.3dev0" "urwidtrees"
   '';
 
-  propagatedBuildInputs = with python3.pkgs; [
+  propagatedBuildInputs = with python3Packages; [
     urwid
     urwidtrees
     aiohttp
@@ -38,17 +38,23 @@ python3.pkgs.buildPythonApplication rec {
     setproctitle
   ];
 
-  checkInputs = with python3.pkgs; [
+  checkInputs = with python3Packages; [
     asynctest
-    pytest
+    pytestCheckHook
   ];
 
-  # test_string__month_day_hour_minute_second fails on darwin
-  checkPhase = ''
-    LC_ALL=en_US.utf8 pytest tests \
-      --deselect=tests/client_test/ttypes_test.py::TestTimestamp::test_string__month_day_hour_minute_second
+  dontUseSetuptoolsCheck = true;
+
+  preCheck = ''
+    export LC_ALL=C
   '';
 
+  pytestFlagsArray = [
+    "tests"
+    # test_string__month_day_hour_minute_second fails on darwin
+    "--deselect=tests/client_test/ttypes_test.py::TestTimestamp::test_string__month_day_hour_minute_second"
+  ];
+
   meta = with lib; {
     description = "TUI and CLI for the BitTorrent client Transmission";
     homepage = "https://github.com/rndusr/stig";