Skip to content

Commit

Permalink
python312Packages.sensoterra: init at 2.0.1 (#352336)
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt authored Nov 3, 2024
2 parents b4260cf + 37c20e8 commit 3537d18
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
38 changes: 38 additions & 0 deletions pkgs/development/python-modules/sensoterra/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
requests,
setuptools,
}:

buildPythonPackage rec {
pname = "sensoterra";
version = "2.0.1";
pyproject = true;

disabled = pythonOlder "3.11";

src = fetchPypi {
inherit pname version;
hash = "sha256-WfjTOns5OPU8+ufDeFdDGjURhBWUFfw/qRSHQazBL04=";
};

build-system = [ setuptools ];

dependencies = [ requests ];

# Test require network access
doCheck = false;

pythonImportsCheck = [ "sensoterra" ];

meta = {
description = "Query Sensoterra probes using the Customer API";
homepage = "https://gitlab.com/sensoterra/public/python";
changelog = "https://gitlab.com/sensoterra/public/python/-/blob/main/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}
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 @@ -3828,7 +3828,8 @@
zeroconf
];
"sensoterra" = ps: with ps; [
]; # missing inputs: sensoterra
sensoterra
];
"sentry" = ps: with ps; [
sentry-sdk
];
Expand Down Expand Up @@ -5660,6 +5661,7 @@
"sensor"
"sensorpro"
"sensorpush"
"sensoterra"
"sentry"
"senz"
"seventeentrack"
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 @@ -14269,6 +14269,8 @@ self: super: with self; {

sensorpush-ble = callPackage ../development/python-modules/sensorpush-ble { };

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

sentencepiece = callPackage ../development/python-modules/sentencepiece {
inherit (pkgs) sentencepiece;
};
Expand Down

0 comments on commit 3537d18

Please sign in to comment.