1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, aiohttp 5, async-timeout 6, xmltodict 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "pymetno"; 12 version = "0.12.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "Danielhiversen"; 19 repo = "PyMetno"; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-wRSUIaonjjucLM+A4GsF9Lrq2vZYCquEvblbmjKYpQE="; 22 }; 23 24 propagatedBuildInputs = [ 25 aiohttp 26 async-timeout 27 xmltodict 28 ]; 29 30 pythonImportsCheck = [ 31 "metno" 32 ]; 33 34 # Project has no tests 35 doCheck = false; 36 37 meta = with lib; { 38 description = "A library to communicate with the met.no API"; 39 homepage = "https://github.com/Danielhiversen/pyMetno/"; 40 changelog = "https://github.com/Danielhiversen/pyMetno/releases/tag/${version}"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ flyfloh ]; 43 }; 44}