Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 paho-mqtt, 7 pythonOlder, 8 pycryptodomex, 9 requests, 10 retrying, 11 setuptools, 12}: 13 14buildPythonPackage rec { 15 pname = "meross-iot"; 16 version = "0.4.7.3"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "albertogeniola"; 23 repo = "MerossIot"; 24 rev = "refs/tags/${version}"; 25 hash = "sha256-Ne9m6umPmX3uXAyY9/Ucvi/rPdHrGJgD5IrZ+BBQweI="; 26 }; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 aiohttp 32 paho-mqtt 33 pycryptodomex 34 requests 35 retrying 36 ]; 37 38 # Test require network access 39 doCheck = false; 40 41 pythonImportsCheck = [ "meross_iot" ]; 42 43 meta = with lib; { 44 description = "Python library to interact with Meross devices"; 45 homepage = "https://github.com/albertogeniola/MerossIot"; 46 changelog = "https://github.com/albertogeniola/MerossIot/releases/tag/${version}"; 47 license = with licenses; [ mit ]; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}