1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00

pythonPackages.libusb1: Disable flaky test

This commit is contained in:
Josef Kemetmüller 2018-09-09 22:09:34 +02:00
parent 063aa389df
commit b633fc4fb4

View file

@ -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; {