1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, freezegun 6, metar 7, pytest-aiohttp 8, pytest-asyncio 9, pytest-cov 10, pytestCheckHook 11, pythonOlder 12}: 13 14buildPythonPackage rec { 15 pname = "pynws"; 16 version = "1.6.0"; 17 disabled = pythonOlder "3.6"; 18 19 src = fetchFromGitHub { 20 owner = "MatthewFlamm"; 21 repo = pname; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-x56kfnmdVV0Fc7XSI60rrtEl4k3uzpIdZxTofUbkUHU="; 24 }; 25 26 propagatedBuildInputs = [ 27 aiohttp 28 metar 29 ]; 30 31 nativeCheckInputs = [ 32 freezegun 33 pytest-aiohttp 34 pytest-asyncio 35 pytest-cov 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "pynws" ]; 40 41 meta = with lib; { 42 description = "Python library to retrieve data from NWS/NOAA"; 43 homepage = "https://github.com/MatthewFlamm/pynws"; 44 license = with licenses; [ mit ]; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}