diff --git a/pkgs/development/python-modules/libusb1/default.nix b/pkgs/development/python-modules/libusb1/default.nix index 8d74a4d3c46e..f11930a3a18d 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, libusb1 }: +{ stdenv, lib, buildPythonPackage, fetchPypi, python, libusb1 }: buildPythonPackage rec { pname = "libusb1"; @@ -17,6 +17,10 @@ buildPythonPackage rec { buildInputs = [ libusb1 ]; + checkPhase = '' + ${python.interpreter} -m usb1.testUSB1 + ''; + meta = with stdenv.lib; { homepage = https://github.com/vpelletier/python-libusb1; description = "Python ctype-based wrapper around libusb1";