mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
Merge pull request #311707 from fabaff/pynmeagps-refactor
python312Packages.pynmeagps: refactor
This commit is contained in:
commit
62f1d3b260
@ -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 ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user