depot/third_party/nixpkgs/pkgs/development/python-modules/aemet-opendata/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

44 lines
918 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
geopy,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "aemet-opendata";
version = "0.5.4";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "Noltari";
repo = "AEMET-OpenData";
rev = "refs/tags/${version}";
hash = "sha256-iy1ptkxc4dh/fwWSi/GgPX5KRulyG0zwWTbCNBirsCo=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
geopy
];
# 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 ];
};
}