python3Packages.androidtv: switch to pytestCheckHook
This commit is contained in:
parent
5d5195f5b6
commit
40d90ca36b
|
@ -1,5 +1,14 @@
|
||||||
{ aiofiles, adb-shell, buildPythonPackage, fetchFromGitHub, isPy3k, lib, mock
|
{ lib
|
||||||
, pure-python-adb, python }:
|
, adb-shell
|
||||||
|
, aiofiles
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, isPy3k
|
||||||
|
, mock
|
||||||
|
, pure-python-adb
|
||||||
|
, pytestCheckHook
|
||||||
|
, python
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "androidtv";
|
pname = "androidtv";
|
||||||
|
@ -16,14 +25,16 @@ buildPythonPackage rec {
|
||||||
propagatedBuildInputs = [ adb-shell pure-python-adb ]
|
propagatedBuildInputs = [ adb-shell pure-python-adb ]
|
||||||
++ lib.optionals (isPy3k) [ aiofiles ];
|
++ lib.optionals (isPy3k) [ aiofiles ];
|
||||||
|
|
||||||
checkInputs = [ mock ];
|
checkInputs = [
|
||||||
checkPhase = ''
|
mock
|
||||||
${python.interpreter} -m unittest discover -s tests -t .
|
pytestCheckHook
|
||||||
'';
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "androidtv" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description =
|
description =
|
||||||
"Communicate with an Android TV or Fire TV device via ADB over a network.";
|
"Communicate with an Android TV or Fire TV device via ADB over a network";
|
||||||
homepage = "https://github.com/JeffLIrion/python-androidtv/";
|
homepage = "https://github.com/JeffLIrion/python-androidtv/";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ jamiemagee ];
|
maintainers = with maintainers; [ jamiemagee ];
|
||||||
|
|
Loading…
Reference in New Issue