python312Packages.pynmeagps: refactor

- remove coverage
This commit is contained in:
Fabian Affolter
2024-05-14 19:53:31 +02:00
parent 6c4f1146c2
commit 142f5de0fb
@@ -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 ];
};