depot/third_party/nixpkgs/pkgs/development/python-modules/aioshelly/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

50 lines
1,010 B
Nix

{
lib,
aiohttp,
bluetooth-data-tools,
buildPythonPackage,
fetchFromGitHub,
habluetooth,
orjson,
pythonOlder,
setuptools,
yarl,
}:
buildPythonPackage rec {
pname = "aioshelly";
version = "11.1.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "aioshelly";
rev = "refs/tags/${version}";
hash = "sha256-uCvwqGsQuiFRhpEj9mIBNE8JsG/3uvMptzOXOwUhY3o=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
bluetooth-data-tools
habluetooth
orjson
yarl
];
# Project has no test
doCheck = false;
pythonImportsCheck = [ "aioshelly" ];
meta = with lib; {
description = "Python library to control Shelly";
homepage = "https://github.com/home-assistant-libs/aioshelly";
changelog = "https://github.com/home-assistant-libs/aioshelly/releases/tag/${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}