summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/starlink-grpc-core/default.nix
blob: a59d523102712d6ca91777a351a005480058e51c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  setuptools-scm,
  grpcio,
  protobuf,
  yagrc,
}:

buildPythonPackage rec {
  pname = "starlink-grpc-core";
  version = "1.2.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "sparky8512";
    repo = "starlink-grpc-tools";
    tag = "v${version}";
    hash = "sha256-TXj8cU5abVIA81vEylYgZCIAUk31BppwRdHMl9kOEPQ=";
  };

  pypaBuildFlags = [ "packaging" ];

  build-system = [
    setuptools
    setuptools-scm
  ];

  dependencies = [
    grpcio
    protobuf
    yagrc
  ];

  # no tests
  doCheck = false;

  pythonImportsCheck = [ "starlink_grpc" ];

  meta = {
    description = "Core functions for Starlink gRPC communication";
    homepage = "https://github.com/sparky8512/starlink-grpc-tools";
    changelog = "https://github.com/sparky8512/starlink-grpc-tools/releases/tag/v${version}";
    license = lib.licenses.unlicense;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
}