python.pkgs.libusb1: fix tests

This commit is contained in:
Robert Schütz 2018-07-30 18:28:58 +02:00
parent 21e5d59f9c
commit 03b77a3910

View file

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