summary refs log tree commit diff
path: root/pkgs/development/python-modules/chirpstack-api/default.nix
blob: 141a5f349b70ece128972c6643b979e84ea44b5b (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchFromGitHub
, google-api-core
, grpcio
, pythonOlder
}:

buildPythonPackage rec {
  pname = "chirpstack-api";
  version = "3.12.4";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "brocaar";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-69encHMk0eXE2Av87ysKvxoiXog5o68qCUlOx/lgHFU=";
  };

  sourceRoot = "${src.name}/python/src";

  propagatedBuildInputs = [
    google-api-core
    grpcio
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [
    "chirpstack_api"
  ];

  meta = with lib; {
    description = "ChirpStack gRPC API message and service wrappers for Python";
    homepage = "https://github.com/brocaar/chirpstack-api";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}