1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6}:
7
8buildPythonPackage rec {
9 pname = "pydanfossair";
10 version = "0.3.0";
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "JonasPed";
15 repo = "pydanfoss-air";
16 tag = "v${version}";
17 hash = "sha256-ZTairxQbvijNiSomDoeZtmL/Hn3ce1Z5TEOf+0C8cYg=";
18 };
19
20 build-system = [ setuptools ];
21
22 # Project has no tests
23 doCheck = false;
24
25 pythonImportsCheck = [ "pydanfossair" ];
26
27 meta = with lib; {
28 description = "Python interface for Danfoss Air HRV systems";
29 homepage = "https://github.com/JonasPed/pydanfoss-air";
30 changelog = "https://github.com/JonasPed/pydanfoss-air/releases/tag/v${version}";
31 license = with licenses; [ asl20 ];
32 maintainers = with maintainers; [ fab ];
33 };
34}