python3Packages.mido: convert to pytestCheckHook, add pythonImportsCheck

This commit is contained in:
Martin Weinelt 2021-04-27 18:24:29 +02:00 committed by Frederik Rietdijk
parent 854822d2a3
commit 878a2ec6d5

View file

@ -1,6 +1,13 @@
{ stdenv, lib, buildPythonPackage, fetchPypi, substituteAll
, portmidi, pygame, python-rtmidi, rtmidi-python
, pytest
{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, substituteAll
, portmidi
, pygame
, python-rtmidi
, rtmidi-python
, pytestCheckHook
}:
buildPythonPackage rec {
@ -25,10 +32,13 @@ buildPythonPackage rec {
rtmidi-python
];
checkInputs = [ pytest ];
checkPhase = ''
py.test . -rs -q
'';
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"mido"
];
meta = with lib; {
description = "MIDI Objects for Python";