1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 fetchpatch,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "aprslib";
11 version = "0.7.2";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "rossengeorgiev";
16 repo = "aprs-python";
17 rev = "v${version}";
18 hash = "sha256-2bYTnbJ8wF/smTpZ2tV+3ZRae7FpbNBtXoaR2Sc9Pek=";
19 };
20
21 patches = [
22 (fetchpatch {
23 url = "https://github.com/rossengeorgiev/aprs-python/commit/c2a0f18ce028a4cced582567a73d57f0d03cd00f.patch";
24 hash = "sha256-uxiLIagz1PIUUa6/qdBW15yhm/0QXqznVzZnzUVCWuQ=";
25 })
26 ];
27
28 doCheck = false; # mox3 is disabled on python311
29
30 nativeCheckInputs = [ pytestCheckHook ];
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}