1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 crc,
7 setuptools,
8 pytest-asyncio_0,
9}:
10
11buildPythonPackage rec {
12 pname = "pyaprilaire";
13 version = "0.9.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "chamberlain2007";
18 repo = "pyaprilaire";
19 tag = version;
20 hash = "sha256-5f/vo8aDQ0HVKXW/yiNYyH3zFnwvP5kv0ZEglvB5quo=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [ crc ];
26
27 pythonImportsCheck = [ "pyaprilaire" ];
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 pytest-asyncio_0
32 ];
33
34 meta = {
35 changelog = "https://github.com/chamberlain2007/pyaprilaire/releases/tag/${src.tag}";
36 description = "Python library for interacting with Aprilaire thermostats";
37 homepage = "https://github.com/chamberlain2007/pyaprilaire";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ pyrox0 ];
40 };
41}