1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 requests, 7 xmltodict, 8}: 9 10buildPythonPackage rec { 11 pname = "meteoalertapi"; 12 version = "0.3.1"; 13 format = "setuptools"; 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "rolfberkenbosch"; 18 repo = "meteoalert-api"; 19 tag = "v${version}"; 20 hash = "sha256-Imb4DVcNB3QiVSCLCI+eKpfl73aMn4NIItQVf7p0H+E="; 21 }; 22 23 propagatedBuildInputs = [ 24 requests 25 xmltodict 26 ]; 27 28 # Tests require network access 29 doCheck = false; 30 31 pythonImportsCheck = [ "meteoalertapi" ]; 32 33 meta = with lib; { 34 description = "Python wrapper for MeteoAlarm.org"; 35 homepage = "https://github.com/rolfberkenbosch/meteoalert-api"; 36 license = with licenses; [ mit ]; 37 maintainers = with maintainers; [ fab ]; 38 }; 39}