at master 1.1 kB view raw
1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 hatchling, 7 pytest-asyncio, 8 pytestCheckHook, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "ttn-client"; 14 version = "1.2.1"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.11"; 18 19 src = fetchFromGitHub { 20 owner = "angelnu"; 21 repo = "thethingsnetwork_python_client"; 22 tag = "v${version}"; 23 hash = "sha256-dWEXoqW4JyYeLFLS3J4CaRJ45wjdVf8wrtMGCKgBds8="; 24 }; 25 26 build-system = [ hatchling ]; 27 28 dependencies = [ aiohttp ]; 29 30 nativeCheckInputs = [ 31 pytest-asyncio 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ "ttn_client" ]; 36 37 disabledTests = [ 38 # Test require network access 39 "test_connection_auth_error" 40 ]; 41 42 meta = with lib; { 43 description = "Module to fetch/receive and parse uplink messages from The Thinks Network"; 44 homepage = "https://github.com/angelnu/thethingsnetwork_python_client"; 45 changelog = "https://github.com/angelnu/thethingsnetwork_python_client/releases/tag/v${version}"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}