depot/third_party/nixpkgs/pkgs/development/python-modules/aemet-opendata/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

52 lines
991 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
geopy,
pythonOlder,
requests,
setuptools,
urllib3,
wheel,
}:
buildPythonPackage rec {
pname = "aemet-opendata";
version = "0.5.3";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "Noltari";
repo = "AEMET-OpenData";
rev = "refs/tags/${version}";
hash = "sha256-KsmH7QJGVf+bZ5XoT+NeScwvvyrXSTZcAwdc12nJLHI=";
};
build-system = [
setuptools
wheel
];
dependencies = [
aiohttp
geopy
requests
urllib3
];
# no tests implemented
doCheck = false;
pythonImportsCheck = [ "aemet_opendata.interface" ];
meta = with lib; {
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 = licenses.gpl2Only;
maintainers = with maintainers; [ dotlambda ];
};
}