3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/dsmr-parser/default.nix
2022-10-28 18:22:49 +02:00

50 lines
889 B
Nix

{ lib
, buildPythonPackage
, dlms-cosem
, fetchFromGitHub
, pyserial
, pyserial-asyncio
, pytestCheckHook
, pythonOlder
, pytz
, tailer
}:
buildPythonPackage rec {
pname = "dsmr-parser";
version = "0.34";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "ndokter";
repo = "dsmr_parser";
rev = "v${version}";
sha256 = "sha256-GO+lSgTmFgi/ljt99mteoot+p5BJnGb6ZFky5I3I6Io=";
};
propagatedBuildInputs = [
dlms-cosem
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 ];
};
}