depot/third_party/nixpkgs/pkgs/development/python-modules/aemet-opendata/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

53 lines
1,003 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, geopy
, pythonOlder
, requests
, setuptools
, urllib3
, wheel
}:
buildPythonPackage rec {
pname = "aemet-opendata";
version = "0.4.7";
format = "pyproject";
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "Noltari";
repo = "AEMET-OpenData";
rev = "refs/tags/${version}";
hash = "sha256-kmU2HtNyYhfwWQv6asOtDpLZ6+O+eEICzBNLxUhAwaY=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
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 ];
};
}