biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / pynmea2 / default.nix
blobe4e9f37d2f50e02713a2066ac46d96369d634871
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   fetchpatch,
6   pytestCheckHook,
7   setuptools,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "pynmea2";
13   version = "1.19.0";
14   pyproject = true;
16   disabled = pythonOlder "3.7";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-Hap5uTJ5+IfRwjXlzFx54yZEVkE4zkaYmrD0ovyXDXw=";
21   };
23   patches = [
24     # Removed depreciated imp and replaced with importlib, https://github.com/Knio/pynmea2/pull/164
25     (fetchpatch {
26       name = "remove-imp.patch";
27       url = "https://github.com/Knio/pynmea2/commit/c56717b5e859e978ad3b52b8f826faa5d50489f8.patch";
28       hash = "sha256-jeFyfukT+0NLNxvNCxL7TzL/8oKmKOam5ZUIvjdvN/Q=";
29     })
30   ];
32   build-system = [ setuptools ];
34   nativeCheckInputs = [ pytestCheckHook ];
36   pythonImportsCheck = [ "pynmea2" ];
38   meta = {
39     description = "Python library for the NMEA 0183 protcol";
40     homepage = "https://github.com/Knio/pynmea2";
41     changelog = "https://github.com/Knio/pynmea2/releases/tag/${version}";
42     license = lib.licenses.mit;
43     maintainers = with lib.maintainers; [ oxzi ];
44   };