nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pytest-cov-stub,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "pynmeagps";
12 version = "1.0.57";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "semuconsulting";
17 repo = "pynmeagps";
18 tag = "v${version}";
19 hash = "sha256-aFB0L2d/2LzDCS5ZbY1/NetDdiuGiwrgqlDyCAv6lV0=";
20 };
21
22 build-system = [ setuptools ];
23
24 nativeCheckInputs = [
25 pytestCheckHook
26 pytest-cov-stub
27 ];
28
29 pythonImportsCheck = [ "pynmeagps" ];
30
31 meta = {
32 description = "NMEA protocol parser and generator";
33 homepage = "https://github.com/semuconsulting/pynmeagps";
34 changelog = "https://github.com/semuconsulting/pynmeagps/releases/tag/${src.tag}";
35 license = lib.licenses.bsd3;
36 maintainers = with lib.maintainers; [ dylan-gonzalez ];
37 };
38}