94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
37 lines
823 B
Nix
37 lines
823 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "metar";
|
|
version = "1.10.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "python-metar";
|
|
repo = "python-metar";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-53vgnViEYuMVKEnIZ2BNyIUrURR2rwopx7RWyFmF5PA=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"metar"
|
|
];
|
|
|
|
meta = with lib; {
|
|
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 = with licenses; [ bsd1 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|