1{ lib
2, asn1crypto
3, attrs
4, buildPythonPackage
5, cryptography
6, fetchFromGitHub
7, pyserial
8, pytestCheckHook
9, python-dateutil
10, pythonOlder
11, typing-extensions
12}:
13
14buildPythonPackage rec {
15 pname = "dlms-cosem";
16 version = "21.3.2";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchFromGitHub {
22 owner = "pwitab";
23 repo = pname;
24 rev = "refs/tags/${version}";
25 sha256 = "sha256-BrLanP+SIRRof15yzqwcDOxw92phbW7m9CfORz0xo7I=";
26 };
27
28 propagatedBuildInputs = [
29 asn1crypto
30 attrs
31 cryptography
32 pyserial
33 python-dateutil
34 typing-extensions
35 ];
36
37 checkInputs = [
38 pytestCheckHook
39 ];
40
41 pythonImportsCheck = [
42 "dlms_cosem"
43 ];
44
45 meta = with lib; {
46 description = "Python module to parse DLMS/COSEM";
47 homepage = "https://github.com/pwitab/dlms-cosem";
48 license = with licenses; [ mit ];
49 maintainers = with maintainers; [ fab ];
50 };
51}