nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 998 B view raw
1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 paho-mqtt, 7 pycryptodomex, 8 requests, 9 setuptools, 10}: 11 12buildPythonPackage (finalAttrs: { 13 pname = "meross-iot"; 14 version = "0.4.10.4"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "albertogeniola"; 19 repo = "MerossIot"; 20 tag = finalAttrs.version; 21 hash = "sha256-9y8/q218hD7BZIbjJvzwmc9bEzWZI+OrA8ERW36ya3w="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ 27 aiohttp 28 paho-mqtt 29 pycryptodomex 30 requests 31 ] 32 ++ aiohttp.optional-dependencies.speedups; 33 34 # Test require network access 35 doCheck = false; 36 37 pythonImportsCheck = [ "meross_iot" ]; 38 39 meta = { 40 description = "Python library to interact with Meross devices"; 41 homepage = "https://github.com/albertogeniola/MerossIot"; 42 changelog = "https://github.com/albertogeniola/MerossIot/releases/tag/${finalAttrs.src.tag}"; 43 license = with lib.licenses; [ mit ]; 44 maintainers = with lib.maintainers; [ fab ]; 45 }; 46})