python.pkgs.libusb1: fix tests
This commit is contained in:
parent
21e5d59f9c
commit
03b77a3910
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, lib, buildPythonPackage, fetchPypi, libusb1 }:
|
{ stdenv, lib, buildPythonPackage, fetchPypi, python, libusb1 }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "libusb1";
|
pname = "libusb1";
|
||||||
@ -17,6 +17,10 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
buildInputs = [ libusb1 ];
|
buildInputs = [ libusb1 ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
${python.interpreter} -m usb1.testUSB1
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://github.com/vpelletier/python-libusb1;
|
homepage = https://github.com/vpelletier/python-libusb1;
|
||||||
description = "Python ctype-based wrapper around libusb1";
|
description = "Python ctype-based wrapper around libusb1";
|
||||||
|
Loading…
Reference in New Issue
Block a user