Files
nixpkgs/pkgs/development/python-modules/aemet-opendata/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

45 lines
901 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
geopy,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "aemet-opendata";
version = "0.6.4";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "Noltari";
repo = "AEMET-OpenData";
tag = version;
hash = "sha256-xxpB5JFPkTwd7dxba9pXRvcont/i3wXBdJh5NfLnZTM=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
geopy
];
# no tests implemented
doCheck = false;
pythonImportsCheck = [ "aemet_opendata.interface" ];
meta = {
description = "Python client for AEMET OpenData Rest API";
homepage = "https://github.com/Noltari/AEMET-OpenData";
changelog = "https://github.com/Noltari/AEMET-OpenData/releases/tag/${version}";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ dotlambda ];
};
}