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