at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 fetchpatch, 6 pytestCheckHook, 7 setuptools, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "pynmea2"; 13 version = "1.19.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-Hap5uTJ5+IfRwjXlzFx54yZEVkE4zkaYmrD0ovyXDXw="; 21 }; 22 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 ]; 31 32 build-system = [ setuptools ]; 33 34 nativeCheckInputs = [ pytestCheckHook ]; 35 36 pythonImportsCheck = [ "pynmea2" ]; 37 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 }; 45}