1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pyserial
5, pyserial-asyncio
6, pytestCheckHook
7, pytz
8, tailer
9}:
10
11buildPythonPackage rec {
12 pname = "dsmr-parser";
13 version = "0.30";
14
15 src = fetchFromGitHub {
16 owner = "ndokter";
17 repo = "dsmr_parser";
18 rev = "v${version}";
19 sha256 = "sha256-3RXku0L/XQFarECxY1LSs2TwSOlJAOiS6yEepHCGL5U=";
20 };
21
22 propagatedBuildInputs = [
23 pyserial
24 pyserial-asyncio
25 pytz
26 tailer
27 ];
28
29 checkInputs = [
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [ "dsmr_parser" ];
34
35 meta = with lib; {
36 description = "Python module to parse Dutch Smart Meter Requirements (DSMR)";
37 homepage = "https://github.com/ndokter/dsmr_parser";
38 license = with licenses; [ mit ];
39 maintainers = with maintainers; [ fab ];
40 };
41}