1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 hatchling,
7 pytestCheckHook,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "ttn-client";
13 version = "0.0.4";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "angelnu";
20 repo = "thethingsnetwork_python_client";
21 rev = "refs/tags/v${version}";
22 hash = "sha256-ZLSMxFyzfPtz51fsY2wgucHzcAnSrL7VPOuW7DXTNbQ=";
23 };
24
25 nativeBuildInputs = [ hatchling ];
26
27 propagatedBuildInputs = [ aiohttp ];
28
29 checkInputs = [ pytestCheckHook ];
30
31 pythonImportsCheck = [ "ttn_client" ];
32
33 meta = with lib; {
34 description = "Module to fetch/receive and parse uplink messages from The Thinks Network";
35 homepage = "https://github.com/angelnu/thethingsnetwork_python_client";
36 changelog = "https://github.com/angelnu/thethingsnetwork_python_client/releases/tag/v${version}";
37 license = licenses.mit;
38 maintainers = with maintainers; [ fab ];
39 };
40}