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