Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 42 lines 753 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, aiohttp 5, async-timeout 6, pytz 7, xmltodict 8}: 9 10buildPythonPackage rec { 11 pname = "pymetno"; 12 version = "0.8.3"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "Danielhiversen"; 17 repo = "PyMetno"; 18 rev = version; 19 sha256 = "sha256-dvZz+wv9B07yKM4E4fQ9VQOgeil9KxZxcGk6D0kWY4g="; 20 }; 21 22 propagatedBuildInputs = [ 23 aiohttp 24 async-timeout 25 pytz 26 xmltodict 27 ]; 28 29 pythonImportsCheck = [ 30 "metno" 31 ]; 32 33 # no tests 34 doCheck = false; 35 36 meta = with lib; { 37 description = "A library to communicate with the met.no API"; 38 homepage = "https://github.com/Danielhiversen/pyMetno/"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ flyfloh ]; 41 }; 42}