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