Skip to content

Commit 3537d18

Browse files
authored
python312Packages.sensoterra: init at 2.0.1 (#352336)
2 parents b4260cf + 37c20e8 commit 3537d18

File tree

3 files changed

+43
-1
lines changed

3 files changed

+43
-1
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchPypi,
5+
pythonOlder,
6+
requests,
7+
setuptools,
8+
}:
9+
10+
buildPythonPackage rec {
11+
pname = "sensoterra";
12+
version = "2.0.1";
13+
pyproject = true;
14+
15+
disabled = pythonOlder "3.11";
16+
17+
src = fetchPypi {
18+
inherit pname version;
19+
hash = "sha256-WfjTOns5OPU8+ufDeFdDGjURhBWUFfw/qRSHQazBL04=";
20+
};
21+
22+
build-system = [ setuptools ];
23+
24+
dependencies = [ requests ];
25+
26+
# Test require network access
27+
doCheck = false;
28+
29+
pythonImportsCheck = [ "sensoterra" ];
30+
31+
meta = {
32+
description = "Query Sensoterra probes using the Customer API";
33+
homepage = "https://gitlab.com/sensoterra/public/python";
34+
changelog = "https://gitlab.com/sensoterra/public/python/-/blob/main/CHANGELOG.md";
35+
license = lib.licenses.mit;
36+
maintainers = with lib.maintainers; [ fab ];
37+
};
38+
}

pkgs/servers/home-assistant/component-packages.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3828,7 +3828,8 @@
38283828
zeroconf
38293829
];
38303830
"sensoterra" = ps: with ps; [
3831-
]; # missing inputs: sensoterra
3831+
sensoterra
3832+
];
38323833
"sentry" = ps: with ps; [
38333834
sentry-sdk
38343835
];
@@ -5660,6 +5661,7 @@
56605661
"sensor"
56615662
"sensorpro"
56625663
"sensorpush"
5664+
"sensoterra"
56635665
"sentry"
56645666
"senz"
56655667
"seventeentrack"

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14269,6 +14269,8 @@ self: super: with self; {
1426914269

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

14272+
sensoterra = callPackage ../development/python-modules/sensoterra { };
14273+
1427214274
sentencepiece = callPackage ../development/python-modules/sentencepiece {
1427314275
inherit (pkgs) sentencepiece;
1427414276
};

0 commit comments

Comments
 (0)