Diff: https://github.com/bieniu/accuweather/compare/refs/tags/0.5.1...0.5.2 Changelog: https://github.com/bieniu/accuweather/releases/tag/0.5.2
51 lines
1,011 B
Nix
51 lines
1,011 B
Nix
{ lib
|
|
, aiohttp
|
|
, aioresponses
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, orjson
|
|
, pytest-asyncio
|
|
, pytest-error-for-skips
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "accuweather";
|
|
version = "0.5.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bieniu";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-rXA5A80PWn08VPeimJeMNWMGvzaE/gWrRuJseHiDkRg=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
orjson
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aioresponses
|
|
pytest-asyncio
|
|
pytest-error-for-skips
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"accuweather"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python wrapper for getting weather data from AccuWeather servers";
|
|
homepage = "https://github.com/bieniu/accuweather";
|
|
changelog = "https://github.com/bieniu/accuweather/releases/tag/${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ jamiemagee ];
|
|
};
|
|
}
|