Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 prettytable, 7 pythonOlder, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "aiosomecomfort"; 13 version = "0.0.25"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "mkmer"; 20 repo = "AIOSomecomfort"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-EmglZW9gzgswxoEtDT+evjn8N+3aPooYFudwAXP8XEE="; 23 }; 24 25 nativeBuildInputs = [ setuptools ]; 26 27 propagatedBuildInputs = [ 28 aiohttp 29 prettytable 30 ]; 31 32 pythonImportsCheck = [ "aiosomecomfort" ]; 33 34 # Tests only run on Windows, due to WindowsSelectorEventLoopPolicy 35 doCheck = false; 36 37 meta = { 38 description = "AsyicIO client for US models of Honeywell Thermostats"; 39 homepage = "https://github.com/mkmer/AIOSomecomfort"; 40 changelog = "https://github.com/mkmer/AIOSomecomfort/releases/tag/${version}"; 41 license = lib.licenses.gpl3Only; 42 maintainers = with lib.maintainers; [ dotlambda ]; 43 }; 44}