a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
49 lines
906 B
Nix
49 lines
906 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, dlms-cosem
|
|
, fetchFromGitHub
|
|
, pyserial
|
|
, pyserial-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pytz
|
|
, tailer
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dsmr-parser";
|
|
version = "1.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ndokter";
|
|
repo = "dsmr_parser";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-UjwrlNPnv/iBFiX65tcOZjkdC7gZsJzxxCtPdYTdl6Q=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
dlms-cosem
|
|
pyserial
|
|
pyserial-asyncio
|
|
pytz
|
|
tailer
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|