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