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