Files
2026-07-15 14:04:39 -04:00

38 lines
763 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
requests,
xmltodict,
}:
buildPythonPackage (finalAttrs: {
pname = "meteoalertapi";
version = "0.3.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "rolfberkenbosch";
repo = "meteoalert-api";
tag = "v${finalAttrs.version}";
hash = "sha256-Imb4DVcNB3QiVSCLCI+eKpfl73aMn4NIItQVf7p0H+E=";
};
propagatedBuildInputs = [
requests
xmltodict
];
# Tests require network access
doCheck = false;
pythonImportsCheck = [ "meteoalertapi" ];
meta = {
description = "Python wrapper for MeteoAlarm.org";
homepage = "https://github.com/rolfberkenbosch/meteoalert-api";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})