blob: f019474e89b4b869f70112f78349a5aeeb5f3f71 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
construct,
paho-mqtt,
pyserial-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "amshan";
version = "2.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "toreamun";
repo = "amshan";
rev = version;
hash = "sha256-aw0wTqb2s84STVUN55h6L926pXwaMSppBCfXZVb87w0=";
};
build-system = [
setuptools
];
dependencies = [
construct
paho-mqtt
pyserial-asyncio
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "han" ];
# 2021.12.1 is an older version
passthru.skipBulkUpdate = true;
meta = {
description = "Decode smart power meter data stream of Cosem HDLC frames used by MBUS";
longDescription = ''
The package has special support of formats for Aidon, Kaifa and Kamstrup
meters used in Norway and Sweden (AMS HAN).
'';
homepage = "https://github.com/toreamun/amshan";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bjornfor ];
};
}
|