1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "pynmeagps"; 12 version = "1.0.36"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "semuconsulting"; 19 repo = "pynmeagps"; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-n7dCr85TeBLxdrD1ZAA7PGJd9+3+xFJ8gjRU/JOFysY="; 22 }; 23 24 postPatch = '' 25 substituteInPlace pyproject.toml \ 26 --replace-fail "--cov --cov-report html --cov-fail-under 95" "" 27 ''; 28 29 build-system = [ setuptools ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 pythonImportsCheck = [ "pynmeagps" ]; 34 35 meta = { 36 description = "NMEA protocol parser and generator"; 37 homepage = "https://github.com/semuconsulting/pynmeagps"; 38 changelog = "https://github.com/semuconsulting/pynmeagps/releases/tag/v${version}"; 39 license = lib.licenses.bsd3; 40 maintainers = with lib.maintainers; [ dylan-gonzalez ]; 41 }; 42}