depot/third_party/nixpkgs/pkgs/development/python-modules/ttn-client/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

40 lines
969 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "ttn-client";
version = "0.0.4";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "angelnu";
repo = "thethingsnetwork_python_client";
rev = "refs/tags/v${version}";
hash = "sha256-ZLSMxFyzfPtz51fsY2wgucHzcAnSrL7VPOuW7DXTNbQ=";
};
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 ];
};
}