mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
Merge pull request #295923 from fabaff/ttn-client
python311Packages.ttn-client: init at 0.0.3
This commit is contained in:
commit
f37a91d2f2
47
pkgs/development/python-modules/ttn-client/default.nix
Normal file
47
pkgs/development/python-modules/ttn-client/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user