treewide: migrate to pythonPackages.unittestCheckHook

This commit is contained in:
Winter
2022-08-06 12:32:04 -04:00
parent e8fbb38a51
commit 19adc3341c
82 changed files with 278 additions and 417 deletions

View File

@@ -2,7 +2,7 @@
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, python
, unittestCheckHook
}:
buildPythonPackage rec {
@@ -22,17 +22,13 @@ buildPythonPackage rec {
substituteInPlace setup.py --replace "license=license" "license='MIT'"
'';
checkInputs = [ unittestCheckHook ];
pythonImportsCheck = [
"maxcube"
"maxcube.cube"
];
checkPhase = ''
runHook preCheck
${python.interpreter} -m unittest discover
runHook postCheck
'';
meta = with lib; {
description = "eQ-3/ELV MAX! Cube Python API";
homepage = "https://github.com/hackercowboy/python-maxcube-api";