at 22.05-pre 866 B view raw
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.3.2"; 17 disabled = pythonOlder "3.6"; 18 19 src = fetchFromGitHub { 20 owner = "MatthewFlamm"; 21 repo = pname; 22 rev = "v${version}"; 23 sha256 = "0d2x3vlm444aar4wbdg48xzpgwng5m7i2d7h1z0pb6c514747sd1"; 24 }; 25 26 propagatedBuildInputs = [ 27 aiohttp 28 metar 29 ]; 30 31 checkInputs = [ 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}