nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 62 lines 1.3 kB view raw
1{ lib 2, aiofiles 3, aiohttp 4, async_generator 5, buildPythonPackage 6, fetchFromGitHub 7, pypubsub 8, pyserial 9, pyserial-asyncio 10, pytest-asyncio 11, pytest-timeout 12, pytestCheckHook 13, pythonOlder 14, pyyaml 15}: 16 17buildPythonPackage rec { 18 pname = "pyinsteon"; 19 version = "1.1.0"; 20 format = "setuptools"; 21 22 disabled = pythonOlder "3.6"; 23 24 src = fetchFromGitHub { 25 owner = pname; 26 repo = pname; 27 rev = "refs/tags/${version}"; 28 hash = "sha256-YoDCvYpbw06MXx371SNarrtQ0t4xlhwm1CBbl524P7c="; 29 }; 30 31 propagatedBuildInputs = [ 32 aiofiles 33 aiohttp 34 pypubsub 35 pyserial 36 pyserial-asyncio 37 pyyaml 38 ]; 39 40 checkInputs = [ 41 async_generator 42 pytest-asyncio 43 pytest-timeout 44 pytestCheckHook 45 ]; 46 47 pythonImportsCheck = [ 48 "pyinsteon" 49 ]; 50 51 meta = with lib; { 52 description = "Python library to support Insteon home automation projects"; 53 longDescription = '' 54 This is a Python package to interface with an Insteon Modem. It has been 55 tested to work with most USB or RS-232 serial based devices such as the 56 2413U, 2412S, 2448A7 and Hub models 2242 and 2245. 57 ''; 58 homepage = "https://github.com/pyinsteon/pyinsteon"; 59 license = with licenses; [ mit ]; 60 maintainers = with maintainers; [ fab ]; 61 }; 62}