depot/third_party/nixpkgs/pkgs/development/python-modules/dsmr-parser/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

50 lines
987 B
Nix

{ lib
, buildPythonPackage
, dlms-cosem
, fetchFromGitHub
, pyserial
, pyserial-asyncio
, pytestCheckHook
, pythonOlder
, pytz
, tailer
}:
buildPythonPackage rec {
pname = "dsmr-parser";
version = "1.2.0";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "ndokter";
repo = "dsmr_parser";
rev = "refs/tags/v${version}";
hash = "sha256-giWchaiNuEN2m2XOpDigZKd0p0gOxp6RrIxPLHEvYOg=";
};
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";
changelog = "https://github.com/ndokter/dsmr_parser/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}