Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions pkgs/development/python-modules/arwn-client/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
click,
paho-mqtt,
pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
pname = "arwn-client";
version = "0.2.1";
pyproject = true;

src = fetchFromGitHub {
owner = "sdague";
repo = "arwn-client";
tag = "v${finalAttrs.version}";
hash = "sha256-By4dZlzR3It4UkYss+RPsKt9Easkegv6VbLd0SSaC2U=";
};

build-system = [ setuptools ];

dependencies = [
click
paho-mqtt
];

nativeCheckInputs = [ pytestCheckHook ];

pythonImportsCheck = [ "arwn_client" ];

meta = {
description = "Python client library for parsing ARWN weather station MQTT messages";
homepage = "https://github.com/sdague/arwn-client";
changelog = "https://github.com/sdague/arwn-client/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
mainProgram = "arwn-client";
maintainers = [ lib.maintainers.jamiemagee ];
Comment thread
JamieMagee marked this conversation as resolved.
};
})
4 changes: 3 additions & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,9 @@
"arwn" =
ps: with ps; [
aiohasupervisor
arwn-client
paho-mqtt
]; # missing inputs: arwn-client
];
"aseko_pool_live" =
ps: with ps; [
aioaseko
Expand Down Expand Up @@ -7845,6 +7846,7 @@
"aranet"
"arcam_fmj"
"arve"
"arwn"
"aseko_pool_live"
"assist_pipeline"
"assist_satellite"
Expand Down
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1347,6 +1347,8 @@ self: super: with self; {

arviz-stats = callPackage ../development/python-modules/arviz-stats { };

arwn-client = callPackage ../development/python-modules/arwn-client { };

arxiv = callPackage ../development/python-modules/arxiv { };

arxiv2bib = callPackage ../development/python-modules/arxiv2bib { };
Expand Down
Loading