2021-03-01 14:52:35 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-02-06 10:53:21 +00:00
|
|
|
, fetchFromGitHub
|
2021-03-01 14:52:35 +00:00
|
|
|
, google-api-core
|
|
|
|
, grpcio
|
2022-02-06 10:53:21 +00:00
|
|
|
, pythonOlder
|
2021-03-01 14:52:35 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "chirpstack-api";
|
2022-02-06 10:53:21 +00:00
|
|
|
version = "3.12.4";
|
|
|
|
format = "setuptools";
|
2021-03-01 14:52:35 +00:00
|
|
|
|
2022-02-06 10:53:21 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "brocaar";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-69encHMk0eXE2Av87ysKvxoiXog5o68qCUlOx/lgHFU=";
|
2021-03-01 14:52:35 +00:00
|
|
|
};
|
|
|
|
|
2022-02-06 10:53:21 +00:00
|
|
|
sourceRoot = "source/python/src";
|
|
|
|
|
2021-03-01 14:52:35 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
google-api-core
|
|
|
|
grpcio
|
|
|
|
];
|
|
|
|
|
2022-02-06 10:53:21 +00:00
|
|
|
# Module has no tests
|
2021-03-01 14:52:35 +00:00
|
|
|
doCheck = false;
|
2022-02-06 10:53:21 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"chirpstack_api"
|
|
|
|
];
|
2021-03-01 14:52:35 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|