Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / meross-iot / default.nix
blob7947ca1f6021b318e528acaab868efbb5f3e0890
1 { lib
2 , aiohttp
3 , buildPythonPackage
4 , fetchFromGitHub
5 , paho-mqtt
6 , pytestCheckHook
7 , pythonOlder
8 , requests
9 , retrying
12 buildPythonPackage rec {
13   pname = "meross-iot";
14   version = "0.4.6.0";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "albertogeniola";
21     repo = "MerossIot";
22     rev = "refs/tags/${version}";
23     hash = "sha256-8DnzTwW4fQQIGAHZJbu2aKkqOUU6a6IGgif5tIZCing=";
24   };
26   propagatedBuildInputs = [
27     aiohttp
28     paho-mqtt
29     requests
30     retrying
31   ];
33   # Test require network access
34   doCheck = false;
36   pythonImportsCheck = [
37     "meross_iot"
38   ];
40   meta = with lib; {
41     description = "Python library to interact with Meross devices";
42     homepage = "https://github.com/albertogeniola/MerossIot";
43     changelog = "https://github.com/albertogeniola/MerossIot/releases/tag/${version}";
44     license = with licenses; [ mit ];
45     maintainers = with maintainers; [ fab ];
46   };