depot/third_party/nixpkgs/pkgs/development/python-modules/pynmeagps/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

42 lines
982 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pynmeagps";
version = "1.0.42";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "semuconsulting";
repo = "pynmeagps";
rev = "refs/tags/v${version}";
hash = "sha256-hlGqc4vZ/C98vQwJewK0cfC3zP9xyO0oXXtlyNUDg0Y=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "--cov --cov-report html --cov-fail-under 98" ""
'';
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pynmeagps" ];
meta = {
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 ];
};
}