1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 google-api-core,
6 grpcio,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "chirpstack-api";
12 version = "3.12.5";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "brocaar";
19 repo = "chirpstack-api";
20 rev = "v${version}";
21 hash = "sha256-TDwvUNnGAbt10lLg6U7q+JMg7uu8TLySYqNyt/uk8UY=";
22 };
23
24 sourceRoot = "${src.name}/python/src";
25
26 propagatedBuildInputs = [
27 google-api-core
28 grpcio
29 ];
30
31 # Module has no tests
32 doCheck = false;
33
34 pythonImportsCheck = [ "chirpstack_api" ];
35
36 meta = with lib; {
37 description = "ChirpStack gRPC API message and service wrappers for Python";
38 homepage = "https://github.com/brocaar/chirpstack-api";
39 license = with licenses; [ mit ];
40 maintainers = with maintainers; [ fab ];
41 };
42}