1{
2 aiohttp,
3 aioresponses,
4 buildPythonPackage,
5 fetchFromGitHub,
6 lib,
7 lxml,
8 poetry-core,
9 pytest-asyncio,
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "pyblu";
15 version = "2.0.1";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "LouisChrist";
20 repo = "pyblu";
21 tag = "v${version}";
22 hash = "sha256-4dWRz7KPLgjN57U/jsm6VCqzkzfMY5yuHL0ZSBeALyI=";
23 };
24
25 pythonRelaxDeps = [ "aiohttp" ];
26
27 build-system = [ poetry-core ];
28
29 dependencies = [
30 aiohttp
31 lxml
32 ];
33
34 pythonImportsCheck = [ "pyblu" ];
35
36 nativeCheckInputs = [
37 aioresponses
38 pytest-asyncio
39 pytestCheckHook
40 ];
41
42 meta = {
43 changelog = "https://github.com/LouisChrist/pyblu/releases/tag/v${version}";
44 description = "BluOS API client";
45 homepage = "https://github.com/LouisChrist/pyblu";
46 license = lib.licenses.mit;
47 maintainers = with lib.maintainers; [ dotlambda ];
48 };
49}