1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "metar";
9 version = "1.8.0";
10
11 src = fetchFromGitHub {
12 owner = "python-metar";
13 repo = "python-metar";
14 rev = "v${version}";
15 sha256 = "019vfq9191cdvvq1afdcdgdgbzpj7wq6pz9li8ggim71azjnv5nn";
16 };
17
18 checkInputs = [ pytestCheckHook ];
19
20 pythonImportsCheck = [ "metar" ];
21
22 meta = with lib; {
23 description = "Python parser for coded METAR weather reports";
24 homepage = "https://github.com/python-metar/python-metar";
25 license = with licenses; [ bsd1 ];
26 maintainers = with maintainers; [ fab ];
27 };
28}