anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / ttn-client / default.nix
blobbba8ef790e7c578688c87f19f8b25e88adca29dd
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   fetchFromGitHub,
6   hatchling,
7   pytest-asyncio,
8   pytestCheckHook,
9   pythonOlder,
12 buildPythonPackage rec {
13   pname = "ttn-client";
14   version = "1.2.1";
15   pyproject = true;
17   disabled = pythonOlder "3.11";
19   src = fetchFromGitHub {
20     owner = "angelnu";
21     repo = "thethingsnetwork_python_client";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-dWEXoqW4JyYeLFLS3J4CaRJ45wjdVf8wrtMGCKgBds8=";
24   };
26   build-system = [ hatchling ];
28   dependencies = [ aiohttp ];
30   nativeCheckInputs = [
31     pytest-asyncio
32     pytestCheckHook
33   ];
35   pythonImportsCheck = [ "ttn_client" ];
37   disabledTests = [
38     # Test require network access
39     "test_connection_auth_error"
40   ];
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   };