5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
freezegun,
|
|
metar,
|
|
pytest-aiohttp,
|
|
pytest-asyncio,
|
|
pytest-cov,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
setuptools-scm,
|
|
tenacity,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pynws";
|
|
version = "1.8.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MatthewFlamm";
|
|
repo = "pynws";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-KUCylHYng6mn2TWKf8C7k0IoerM22OIQ7pJMKi5SF3A=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
metar
|
|
];
|
|
|
|
optional-dependencies.retry = [ tenacity ];
|
|
|
|
nativeCheckInputs = [
|
|
freezegun
|
|
pytest-aiohttp
|
|
pytest-asyncio
|
|
pytest-cov
|
|
pytestCheckHook
|
|
] ++ lib.flatten (lib.attrValues optional-dependencies);
|
|
|
|
pythonImportsCheck = [ "pynws" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library to retrieve data from NWS/NOAA";
|
|
homepage = "https://github.com/MatthewFlamm/pynws";
|
|
changelog = "https://github.com/MatthewFlamm/pynws/releases/tag/v${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|