1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, fetchpatch
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "aprslib";
10 version = "0.7.2";
11
12 src = fetchFromGitHub {
13 owner = "rossengeorgiev";
14 repo = "aprs-python";
15 rev = "v${version}";
16 hash = "sha256-2bYTnbJ8wF/smTpZ2tV+3ZRae7FpbNBtXoaR2Sc9Pek=";
17 };
18
19 patches = [
20 (fetchpatch {
21 url = "https://github.com/rossengeorgiev/aprs-python/commit/c2a0f18ce028a4cced582567a73d57f0d03cd00f.patch";
22 hash = "sha256-uxiLIagz1PIUUa6/qdBW15yhm/0QXqznVzZnzUVCWuQ=";
23 })
24 ];
25
26 doCheck = false; # mox3 is disabled on python311
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "aprslib" ];
33
34 meta = with lib; {
35 description = "Module for accessing APRS-IS and parsing APRS packets";
36 homepage = "https://github.com/rossengeorgiev/aprs-python";
37 license = licenses.gpl2Plus;
38 maintainers = with maintainers; [ dotlambda ];
39 };
40}