2021-04-22 02:08:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-10-30 15:09:59 +00:00
|
|
|
, dlms-cosem
|
2021-04-22 02:08:21 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pyserial
|
|
|
|
, pyserial-asyncio
|
|
|
|
, pytestCheckHook
|
2021-12-06 16:07:01 +00:00
|
|
|
, pythonOlder
|
2021-04-22 02:08:21 +00:00
|
|
|
, pytz
|
|
|
|
, tailer
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dsmr-parser";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "1.2.1";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-04-22 02:08:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ndokter";
|
|
|
|
repo = "dsmr_parser";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-04-12 12:48:02 +00:00
|
|
|
hash = "sha256-a02bpC9CVecAtIfWbLM74K4thaGI2GferEnJQKtIiu8=";
|
2021-04-22 02:08:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-10-30 15:09:59 +00:00
|
|
|
dlms-cosem
|
2021-04-22 02:08:21 +00:00
|
|
|
pyserial
|
|
|
|
pyserial-asyncio
|
|
|
|
pytz
|
|
|
|
tailer
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-04-22 02:08:21 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"dsmr_parser"
|
|
|
|
];
|
2021-04-22 02:08:21 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module to parse Dutch Smart Meter Requirements (DSMR)";
|
|
|
|
homepage = "https://github.com/ndokter/dsmr_parser";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/ndokter/dsmr_parser/releases/tag/v${version}";
|
2021-04-22 02:08:21 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|