1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6}:
7
8buildPythonPackage rec {
9 pname = "refoss-ha";
10 version = "1.2.5";
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "ashionky";
15 repo = "refoss_ha";
16 tag = "v${version}";
17 hash = "sha256-HLPTXE16PizldeURVmoxcRVci12lc1PsCKH+gA1hr8Y=";
18 };
19
20 build-system = [ setuptools ];
21
22 pythonImportsCheck = [ "refoss_ha" ];
23
24 # upstream has no tests
25 doCheck = false;
26
27 meta = {
28 changelog = "https://github.com/ashionky/refoss_ha/releases/tag/v${version}";
29 description = "Refoss support for Home Assistant";
30 homepage = "https://github.com/ashionky/refoss_ha";
31 license = lib.licenses.mit;
32 maintainers = with lib.maintainers; [ dotlambda ];
33 };
34}