Skip to content

Commit

Permalink
Merge pull request #330936 from pyrox0/home-assistant/ccm15-component
Browse files Browse the repository at this point in the history
python312Packages.py-ccm15: init at 0.0.9
  • Loading branch information
mweinelt authored Jul 29, 2024
2 parents 0093835 + ca6ede4 commit 36e3f18
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
45 changes: 45 additions & 0 deletions pkgs/development/python-modules/py-ccm15/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
httpx,
xmltodict,
aiohttp,
}:

buildPythonPackage {
pname = "py-ccm15";
version = "0.0.9";
pyproject = true;

src = fetchFromGitHub {
owner = "ocalvo";
repo = "py-ccm15";
# Upstream does not have a tag for this release and this is the exact release commit
# Therefore it should not be marked unstable
# upstream issue: https://github.com/ocalvo/py-ccm15/issues/10
rev = "3891d840e69d241c85bf9486e7fe0bb3c7443980";
hash = "sha256-I2/AdG07PAvuC8rQKOIAUk7u3pJpANMaFpvEsejWeBU=";
};

build-system = [ setuptools ];

dependencies = [
httpx
xmltodict
aiohttp
];

nativeCheckInputs = [ pytestCheckHook ];

pythonImportsCheck = [ "ccm15" ];

meta = {
description = "Python Library to access a Midea CCM15 data converter";
homepage = "https://github.com/ocalvo/py-ccm15";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
}
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 @@ -629,7 +629,8 @@
zeroconf
];
"ccm15" = ps: with ps; [
]; # missing inputs: py-ccm15
py-ccm15
];
"cert_expiry" = ps: with ps; [
];
"channels" = ps: with ps; [
Expand Down Expand Up @@ -5334,6 +5335,7 @@
"camera"
"canary"
"cast"
"ccm15"
"cert_expiry"
"clicksend_tts"
"climate"
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 @@ -9246,6 +9246,8 @@ self: super: with self; {

py-aosmith = callPackage ../development/python-modules/py-aosmith { };

py-ccm15 = callPackage ../development/python-modules/py-ccm15 { };

py-deprecate = callPackage ../development/python-modules/py-deprecate { };

py-ecc = callPackage ../development/python-modules/py-ecc { };
Expand Down

0 comments on commit 36e3f18

Please sign in to comment.