1{
2 aiohttp,
3 aioresponses,
4 buildPythonPackage,
5 fetchFromGitHub,
6 lib,
7 poetry-core,
8 pytest-asyncio,
9 pytestCheckHook,
10 yarl,
11}:
12
13buildPythonPackage rec {
14 pname = "iometer";
15 version = "0.1.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "iometer-gmbh";
20 repo = "iometer.py";
21 tag = "v${version}";
22 hash = "sha256-+Ox9FlS2mswCt2jaJfKuvt21byjUrnCYp3vcv1D83Rs=";
23 };
24
25 build-system = [ poetry-core ];
26
27 dependencies = [
28 aiohttp
29 yarl
30 ];
31
32 pythonImportsCheck = [ "iometer" ];
33
34 nativeCheckInputs = [
35 aioresponses
36 pytest-asyncio
37 pytestCheckHook
38 ];
39
40 enabledTestPaths = [
41 "tests/test.py"
42 ];
43
44 meta = {
45 changelog = "https://github.com/iometer-gmbh/iometer.py/releases/tag/${src.tag}";
46 description = "Python client for interacting with IOmeter devices over HTTP";
47 homepage = "https://github.com/iometer-gmbh/iometer.py";
48 license = lib.licenses.mit;
49 maintainers = with lib.maintainers; [ dotlambda ];
50 };
51}