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

32 lines
748 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "metar";
version = "1.11.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "python-metar";
repo = "python-metar";
tag = "v${version}";
hash = "sha256-ZDjlXcSTUcSP7oRdhzLpXf/fLUA7Nkc6nj2I6vovbHg=";
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "metar" ];
meta = {
description = "Python parser for coded METAR weather reports";
homepage = "https://github.com/python-metar/python-metar";
changelog = "https://github.com/python-metar/python-metar/blob/v${version}/CHANGELOG.md";
license = lib.licenses.bsd1;
maintainers = with lib.maintainers; [ fab ];
};
}