Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.11 39 lines 846 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, aiodns 6, aiohttp 7, backports-zoneinfo 8}: 9 10buildPythonPackage rec { 11 pname = "forecast-solar"; 12 version = "2.1.0"; 13 14 src = fetchFromGitHub { 15 owner = "home-assistant-libs"; 16 repo = "forecast_solar"; 17 rev = version; 18 sha256 = "sha256-UrLy+j8YDWuS9pciEDKb/+UoCcw54XWiIUAEYC72/W0="; 19 }; 20 21 propagatedBuildInputs = [ 22 aiodns 23 aiohttp 24 ] ++ lib.optionals (pythonOlder "3.9") [ 25 backports-zoneinfo 26 ]; 27 28 # no unit tests implemented 29 doCheck = false; 30 31 pythonImportsCheck = [ "forecast_solar" ]; 32 33 meta = with lib; { 34 description = "Asynchronous Python client for getting forecast solar information"; 35 homepage = "https://github.com/home-assistant-libs/forecast_solar"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ dotlambda ]; 38 }; 39}