Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / ttn-client / default.nix
blob515f616dbe24a01989b2ef3f8bca675bddb964fd
1 { lib
2 , aiohttp
3 , buildPythonPackage
4 , fetchFromGitHub
5 , hatchling
6 , pytestCheckHook
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "ttn-client";
12   version = "0.0.4";
13   pyproject = true;
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "angelnu";
19     repo = "thethingsnetwork_python_client";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-ZLSMxFyzfPtz51fsY2wgucHzcAnSrL7VPOuW7DXTNbQ=";
22   };
24   nativeBuildInputs = [
25     hatchling
26   ];
28   propagatedBuildInputs = [
29     aiohttp
30   ];
32   checkInputs = [
33     pytestCheckHook
34   ];
36   pythonImportsCheck = [
37     "ttn_client"
38   ];
40   meta = with lib; {
41     description = "Module to fetch/receive and parse uplink messages from The Thinks Network";
42     homepage = "https://github.com/angelnu/thethingsnetwork_python_client";
43     changelog = "https://github.com/angelnu/thethingsnetwork_python_client/releases/tag/v${version}";
44     license = licenses.mit;
45     maintainers = with maintainers; [ fab ];
46   };