1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools,
7 httpx,
8 xmltodict,
9 aiohttp,
10}:
11
12buildPythonPackage {
13 pname = "py-ccm15";
14 version = "0.0.9";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "ocalvo";
19 repo = "py-ccm15";
20 # Upstream does not have a tag for this release and this is the exact release commit
21 # Therefore it should not be marked unstable
22 # upstream issue: https://github.com/ocalvo/py-ccm15/issues/10
23 rev = "3891d840e69d241c85bf9486e7fe0bb3c7443980";
24 hash = "sha256-I2/AdG07PAvuC8rQKOIAUk7u3pJpANMaFpvEsejWeBU=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 httpx
31 xmltodict
32 aiohttp
33 ];
34
35 nativeCheckInputs = [ pytestCheckHook ];
36
37 pythonImportsCheck = [ "ccm15" ];
38
39 meta = {
40 description = "Python Library to access a Midea CCM15 data converter";
41 homepage = "https://github.com/ocalvo/py-ccm15";
42 license = lib.licenses.mit;
43 maintainers = with lib.maintainers; [ pyrox0 ];
44 };
45}