nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 aioresponses,
5 buildPythonPackage,
6 fetchFromGitHub,
7 pytest-asyncio,
8 pytestCheckHook,
9 poetry-core,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "incomfort-client";
15 version = "0.6.11";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "zxdavb";
20 repo = "incomfort-client";
21 tag = "v${version}";
22 hash = "sha256-HCawa+eFpC0t/dC8fQ+teMaPpuxrYBprEV8SxnhZ1ls=";
23 };
24
25 build-system = [ poetry-core ];
26
27 dependencies = [ aiohttp ];
28
29 nativeCheckInputs = [
30 aioresponses
31 pytest-asyncio
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "incomfortclient" ];
36
37 meta = {
38 description = "Python module to poll Intergas boilers via a Lan2RF gateway";
39 homepage = "https://github.com/zxdavb/incomfort-client";
40 changelog = "https://github.com/jbouwh/incomfort-client/releases/tag/${src.tag}";
41 license = lib.licenses.mit;
42 maintainers = with lib.maintainers; [ fab ];
43 };
44}