blob: 6497a46b60e7d174f4e504a6bf0d4764ed09ebdd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "earn-e-p1";
version = "0.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Miggets7";
repo = "earn-e-p1";
tag = finalAttrs.version;
hash = "sha256-a76+slVhZj6AQIDCcaEym3G6DjIsQQLfi13wIsYGkjA=";
};
build-system = [ hatchling ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "earn_e_p1" ];
meta = {
description = "Async Python library for communicating with EARN-E P1 energy meters via UDP";
homepage = "https://github.com/Miggets7/earn-e-p1";
changelog = "https://github.com/Miggets7/earn-e-p1/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jamiemagee ];
};
})
|