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