Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 loguru, 7 numpy, 8 setuptools, 9 unasync, 10 urllib3, 11}: 12 13buildPythonPackage rec { 14 pname = "pyosohotwaterapi"; 15 version = "1.2.0"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "osohotwateriot"; 20 repo = "apyosohotwaterapi"; 21 tag = version; 22 hash = "sha256-GFjA1RtJC2bxSoH2TIZwEdSAvpteYBTbsS81hhp4Y3E="; 23 }; 24 25 build-system = [ 26 setuptools 27 unasync 28 ]; 29 30 dependencies = [ 31 aiohttp 32 loguru 33 numpy 34 urllib3 35 ]; 36 37 preBuild = '' 38 export HOME=$(mktemp -d) 39 ''; 40 41 # Module has no tests 42 doCheck = false; 43 44 pythonImportsCheck = [ "apyosoenergyapi" ]; 45 46 meta = with lib; { 47 description = "Module for using the OSO Hotwater API"; 48 homepage = "https://github.com/osohotwateriot/apyosohotwaterapi"; 49 changelog = "https://github.com/osohotwateriot/apyosohotwaterapi/releases/tag/${src.tag}"; 50 license = licenses.mit; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}