at master 1.0 kB view raw
1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 colorlog, 6 fetchFromGitHub, 7 python-dateutil, 8 requests, 9 setuptools-scm, 10}: 11 12buildPythonPackage rec { 13 pname = "pyisy"; 14 version = "3.4.1"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "automicus"; 19 repo = "PyISY"; 20 tag = "v${version}"; 21 hash = "sha256-9gGrrFh5xCuX4GjF6a6RRGkpF/rH07Zz0nyKvgwgEkU="; 22 }; 23 24 postPatch = '' 25 substituteInPlace setup.py \ 26 --replace 'version_format="{tag}"' 'version="${version}"' 27 ''; 28 29 build-system = [ setuptools-scm ]; 30 31 dependencies = [ 32 aiohttp 33 colorlog 34 python-dateutil 35 requests 36 ]; 37 38 # no tests implemented 39 doCheck = false; 40 41 pythonImportsCheck = [ "pyisy" ]; 42 43 meta = with lib; { 44 description = "Python module to talk to ISY994 from UDI"; 45 homepage = "https://github.com/automicus/PyISY"; 46 changelog = "https://github.com/automicus/PyISY/releases/tag/${src.tag}"; 47 license = licenses.asl20; 48 maintainers = with maintainers; [ dotlambda ]; 49 }; 50}