mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 03:03:37 +00:00
3ff777c44c
Diff: https://github.com/ndokter/dsmr_parser/compare/refs/tags/v1.3.0...v1.3.1 Changelog: https://github.com/ndokter/dsmr_parser/releases/tag/v1.3.1
51 lines
987 B
Nix
51 lines
987 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, dlms-cosem
|
|
, fetchFromGitHub
|
|
, pyserial
|
|
, pyserial-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pytz
|
|
, tailer
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dsmr-parser";
|
|
version = "1.3.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ndokter";
|
|
repo = "dsmr_parser";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-PULrKRHrCuDFZcR+5ha0PjkN438QFgf2CrpYhKIqYTs=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|