1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "metar";
11 version = "1.11.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "python-metar";
18 repo = "python-metar";
19 tag = "v${version}";
20 hash = "sha256-ZDjlXcSTUcSP7oRdhzLpXf/fLUA7Nkc6nj2I6vovbHg=";
21 };
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "metar" ];
26
27 meta = with lib; {
28 description = "Python parser for coded METAR weather reports";
29 homepage = "https://github.com/python-metar/python-metar";
30 changelog = "https://github.com/python-metar/python-metar/blob/v${version}/CHANGELOG.md";
31 license = with licenses; [ bsd1 ];
32 maintainers = with maintainers; [ fab ];
33 };
34}