about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2024-03-14 21:07:57 +0100
committerGitHub <noreply@github.com>2024-03-14 21:07:57 +0100
commitf37a91d2f2e2e5686ef17bbaf5cdf84ec032f8ce (patch)
treea096fe75af0a9761792acf100696d39f77345a63 /pkgs
parent10b18d5bc73a4fcf1a65b789e706266f2b86a645 (diff)
parent367ff623c791e720f07cb1eaa19a39a67bc76bae (diff)
downloadnixlib-f37a91d2f2e2e5686ef17bbaf5cdf84ec032f8ce.tar
nixlib-f37a91d2f2e2e5686ef17bbaf5cdf84ec032f8ce.tar.gz
nixlib-f37a91d2f2e2e5686ef17bbaf5cdf84ec032f8ce.tar.bz2
nixlib-f37a91d2f2e2e5686ef17bbaf5cdf84ec032f8ce.tar.lz
nixlib-f37a91d2f2e2e5686ef17bbaf5cdf84ec032f8ce.tar.xz
nixlib-f37a91d2f2e2e5686ef17bbaf5cdf84ec032f8ce.tar.zst
nixlib-f37a91d2f2e2e5686ef17bbaf5cdf84ec032f8ce.zip
Merge pull request #295923 from fabaff/ttn-client
python311Packages.ttn-client: init at 0.0.3
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/ttn-client/default.nix47
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ttn-client/default.nix b/pkgs/development/python-modules/ttn-client/default.nix
new file mode 100644
index 000000000000..ada7cc390b69
--- /dev/null
+++ b/pkgs/development/python-modules/ttn-client/default.nix
@@ -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 ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 545fe4a7dae3..2288c87f86f3 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -15022,6 +15022,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 { };