81047829ea
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
47 lines
862 B
Nix
47 lines
862 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pyserial
|
|
, pyserial-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pytz
|
|
, tailer
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dsmr-parser";
|
|
version = "0.32";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ndokter";
|
|
repo = "dsmr_parser";
|
|
rev = "v${version}";
|
|
sha256 = "0hi69gdcmsp5yaspsfbpc3x76iybg20cylxyaxm131fpd5wwan9l";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyserial
|
|
pyserial-asyncio
|
|
pytz
|
|
tailer
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"dsmr_parser"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module to parse Dutch Smart Meter Requirements (DSMR)";
|
|
homepage = "https://github.com/ndokter/dsmr_parser";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|