818c48e259
GitOrigin-RevId: 14aef06d9b3ad1d07626bdbb16083b83f92dc6c1
47 lines
865 B
Nix
47 lines
865 B
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, freezegun
|
|
, metar
|
|
, pytest-aiohttp
|
|
, pytest-asyncio
|
|
, pytest-cov
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pynws";
|
|
version = "1.3.1";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MatthewFlamm";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-iWg8UsZeVaOxp35rItywTAlQUbCWe4WWDK4VPCRApcM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
metar
|
|
];
|
|
|
|
checkInputs = [
|
|
freezegun
|
|
pytest-aiohttp
|
|
pytest-asyncio
|
|
pytest-cov
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "pynws" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library to retrieve data from NWS/NOAA";
|
|
homepage = "https://github.com/MatthewFlamm/pynws";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|