python311Packages.ttn-client: init at 0.0.3

Module to fetch/receive and parse uplink messages from The Thinks Network

https://github.com/angelnu/thethingsnetwork_python_client
This commit is contained in:
Fabian Affolter 2024-03-14 17:10:08 +01:00
parent 7b228851ee
commit 367ff623c7
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, hatchling
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "ttn-client";
version = "0.0.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "angelnu";
repo = "thethingsnetwork_python_client";
rev = "refs/tags/v${version}";
hash = "sha256-oHGv9huk400nPl4ytV8uxzK7eENpoBHt8uFjD2Ck67w=";
};
nativeBuildInputs = [
hatchling
];
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"ttn_client"
];
meta = with lib; {
description = "Module to fetch/receive and parse uplink messages from The Thinks Network";
homepage = "https://github.com/angelnu/thethingsnetwork_python_client";
changelog = "https://github.com/angelnu/thethingsnetwork_python_client/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -15000,6 +15000,8 @@ self: super: with self; {
ttls = callPackage ../development/python-modules/ttls { };
ttn-client = callPackage ../development/python-modules/ttn-client { };
ttp = callPackage ../development/python-modules/ttp { };
ttp-templates = callPackage ../development/python-modules/ttp-templates { };