depot/third_party/nixpkgs/pkgs/development/python-modules/aioshelly/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

50 lines
1,010 B
Nix

{
lib,
aiohttp,
bluetooth-data-tools,
buildPythonPackage,
fetchFromGitHub,
habluetooth,
orjson,
pythonOlder,
setuptools,
yarl,
}:
buildPythonPackage rec {
pname = "aioshelly";
version = "10.0.1";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "aioshelly";
rev = "refs/tags/${version}";
hash = "sha256-+p+AFgqS/9rCDkIiNm4o7GhQ4dPfKl2s7ukEYaAdlgo=";
};
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 ];
};
}