Merge pull request #311707 from fabaff/pynmeagps-refactor

python312Packages.pynmeagps: refactor
This commit is contained in:
Fabian Affolter 2024-05-15 08:43:55 +02:00 committed by GitHub
commit 62f1d3b260
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,9 +1,10 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, setuptools
, pytest-cov
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
@ -11,6 +12,8 @@ buildPythonPackage rec {
version = "1.0.36";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "semuconsulting";
repo = "pynmeagps";
@ -18,20 +21,21 @@ buildPythonPackage rec {
hash = "sha256-n7dCr85TeBLxdrD1ZAA7PGJd9+3+xFJ8gjRU/JOFysY=";
};
nativeBuildInputs = [ setuptools ];
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "--cov --cov-report html --cov-fail-under 95" ""
'';
nativeCheckInputs = [
pytestCheckHook
pytest-cov
];
build-system = [ setuptools ];
pythonImportsCheck = [
"pynmeagps"
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pynmeagps" ];
meta = {
homepage = "https://github.com/semuconsulting/pynmeagps";
description = "NMEA protocol parser and generator";
homepage = "https://github.com/semuconsulting/pynmeagps";
changelog = "https://github.com/semuconsulting/pynmeagps/releases/tag/v${version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ dylan-gonzalez ];
};