2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
fetchpatch,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
|
|
|
pythonOlder,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pynmea2";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.19.0";
|
2024-06-05 15:53:02 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-02-02 18:25:31 +00:00
|
|
|
hash = "sha256-Hap5uTJ5+IfRwjXlzFx54yZEVkE4zkaYmrD0ovyXDXw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
patches = [
|
|
|
|
# Removed depreciated imp and replaced with importlib, https://github.com/Knio/pynmea2/pull/164
|
|
|
|
(fetchpatch {
|
|
|
|
name = "remove-imp.patch";
|
|
|
|
url = "https://github.com/Knio/pynmea2/commit/c56717b5e859e978ad3b52b8f826faa5d50489f8.patch";
|
|
|
|
hash = "sha256-jeFyfukT+0NLNxvNCxL7TzL/8oKmKOam5ZUIvjdvN/Q=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
pythonImportsCheck = [ "pynmea2" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "Python library for the NMEA 0183 protcol";
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://github.com/Knio/pynmea2";
|
|
|
|
changelog = "https://github.com/Knio/pynmea2/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = lib.licenses.mit;
|
2020-08-20 17:08:02 +00:00
|
|
|
maintainers = with lib.maintainers; [ oxzi ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|