nixpkgs/pkgs/development/python-modules/aioshelly/default.nix
2021-05-26 08:45:15 -07:00

36 lines
783 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, netifaces
}:
buildPythonPackage rec {
pname = "aioshelly";
version = "0.6.4";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = pname;
rev = version;
sha256 = "sha256-QRCqkaKhPQQjNt9mw8nlTB5YKLmIZbXfrxarb3Ksr5k=";
};
propagatedBuildInputs = [
aiohttp
netifaces
];
# 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 ];
};
}