mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
398e2724b6
Diff: https://github.com/home-assistant-libs/aioshelly/compare/refs/tags/5.3.2...5.4.0 Changelog: https://github.com/home-assistant-libs/aioshelly/releases/tag/5.4.0
45 lines
917 B
Nix
45 lines
917 B
Nix
{ lib
|
|
, aiohttp
|
|
, bluetooth-data-tools
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, orjson
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioshelly";
|
|
version = "5.4.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "home-assistant-libs";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-cbgDuJXvZmbhIgxpuySGbJqz7DeI65DHwk1UPdNUs1Q=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
bluetooth-data-tools
|
|
orjson
|
|
];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|