summary refs log tree commit diff
diff options
context:
space:
mode:
authorJosef Kemetmüller <josef.kemetmueller@gmail.com>2018-09-09 22:09:34 +0200
committerJosef Kemetmüller <josef.kemetmueller@gmail.com>2018-09-09 22:09:34 +0200
commitb633fc4fb4b3bbd44b4bbb1d29d3f3fa642991f5 (patch)
treedcc2e95b2e0b4c95988dd020f2091581bf2e7901
parent063aa389dfaa29b697acf2db72610324b1b6aa39 (diff)
downloadnixlib-b633fc4fb4b3bbd44b4bbb1d29d3f3fa642991f5.tar
nixlib-b633fc4fb4b3bbd44b4bbb1d29d3f3fa642991f5.tar.gz
nixlib-b633fc4fb4b3bbd44b4bbb1d29d3f3fa642991f5.tar.bz2
nixlib-b633fc4fb4b3bbd44b4bbb1d29d3f3fa642991f5.tar.lz
nixlib-b633fc4fb4b3bbd44b4bbb1d29d3f3fa642991f5.tar.xz
nixlib-b633fc4fb4b3bbd44b4bbb1d29d3f3fa642991f5.tar.zst
nixlib-b633fc4fb4b3bbd44b4bbb1d29d3f3fa642991f5.zip
pythonPackages.libusb1: Disable flaky test
-rw-r--r--pkgs/development/python-modules/libusb1/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/libusb1/default.nix b/pkgs/development/python-modules/libusb1/default.nix
index a460fb8a1185..8a9b5da68ef9 100644
--- a/pkgs/development/python-modules/libusb1/default.nix
+++ b/pkgs/development/python-modules/libusb1/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, lib, buildPythonPackage, fetchPypi, python, libusb1 }:
+{ stdenv, lib, buildPythonPackage, fetchPypi, python, libusb1, pytest }:
 
 buildPythonPackage rec {
   pname = "libusb1";
@@ -17,8 +17,12 @@ buildPythonPackage rec {
 
   buildInputs = [ libusb1 ];
 
+  checkInputs = [ pytest ];
+
   checkPhase = ''
-    ${python.interpreter} -m usb1.testUSB1
+    # USBPollerThread is unreliable. Let's not test it.
+    # See: https://github.com/vpelletier/python-libusb1/issues/16
+    py.test -k 'not testUSBPollerThreadExit' usb1/testUSB1.py
   '';
 
   meta = with stdenv.lib; {