depot/third_party/nixpkgs/pkgs/development/python-modules/thinqconnect/default.nix

45 lines
869 B
Nix

{
lib,
aiohttp,
awsiotsdk,
buildPythonPackage,
fetchFromGitHub,
pyopenssl,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "thinqconnect";
version = "1.0.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "thinq-connect";
repo = "pythinqconnect";
rev = "refs/tags/${version}";
hash = "sha256-8TDpoV2FNWzcHwXaEDyt5mRCbmFdtfuIYJK7OqXAgvg=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
awsiotsdk
pyopenssl
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "thinqconnect" ];
meta = {
description = "Module to interacting with the LG ThinQ Connect Open API";
homepage = "https://github.com/thinq-connect/pythinqconnect";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}