46 lines
875 B
Nix
46 lines
875 B
Nix
{
|
|
lib,
|
|
setuptools,
|
|
aiohttp,
|
|
async-timeout,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytz,
|
|
xmltodict,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pymeteireann";
|
|
version = "2024.11.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DylanGore";
|
|
repo = "PyMetEireann";
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-b59I2h9A3QoXEBUYhbR0vsGGpQpOvFrqhHZnVCS8fLo=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
xmltodict
|
|
aiohttp
|
|
async-timeout
|
|
pytz
|
|
];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "meteireann" ];
|
|
|
|
meta = {
|
|
description = "Python module to communicate with the Met Éireann Public Weather Forecast API";
|
|
homepage = "https://github.com/DylanGore/PyMetEireann/";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|