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