python311Packages.pyobihai: enable tests
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, defusedxml
|
||||
, fetchPypi
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
}:
|
||||
@@ -13,10 +14,11 @@ buildPythonPackage rec {
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
# GitHub release, https://github.com/dshokouhi/pyobihai/issues/10
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-vOyVnPUZlHuWoezpndPjq4vvvb6Pqvy+O15im9P9ja4=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "ejpenney";
|
||||
repo = pname;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-tDPu/ceH7+7AnxokADDfl+G56B0+ri8RxXxXEyWa61Q=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -24,16 +26,17 @@ buildPythonPackage rec {
|
||||
requests
|
||||
];
|
||||
|
||||
# Project has no tests
|
||||
doCheck = false;
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pyobihai"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python package to interact with Obihai devices";
|
||||
homepage = "https://github.com/dshokouhi/pyobihai";
|
||||
description = "Module to interact with Obihai devices";
|
||||
homepage = "https://github.com/ejpenney/pyobihai";
|
||||
changelog = "https://github.com/ejpenney/pyobihai/releases/tag/${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
|
||||
Reference in New Issue
Block a user