2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
attrs,
|
|
|
|
requests,
|
2023-02-09 11:40:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyqwikswitch";
|
|
|
|
version = "0.94";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-IpyWz+3EMr0I+xULBJJhBgdnQHNPJIM1SqKFLpszhQc=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyqwikswitch"
|
|
|
|
"pyqwikswitch.threaded"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # no tests in sdist
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "QwikSwitch USB Modem API binding for Python";
|
|
|
|
homepage = "https://github.com/kellerza/pyqwikswitch";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = teams.home-assistant.members;
|
|
|
|
};
|
|
|
|
}
|