mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-08 06:13:55 +00:00
Diff: https://github.com/ndokter/dsmr_parser/compare/v.1.5...v1.7.0 Changelog: https://github.com/ndokter/dsmr_parser/releases/tag/v1.7.0
48 lines
1022 B
Nix
48 lines
1022 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
dlms-cosem,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonAtLeast,
|
|
serialx,
|
|
setuptools,
|
|
tailer,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "dsmr-parser";
|
|
version = "1.7.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ndokter";
|
|
repo = "dsmr_parser";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-AnOnyvqmRRWYwJTeBLGgLSJT0/hkMXTmJQe8EJ6myFA=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "dlms_cosem" ];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
dlms-cosem
|
|
serialx
|
|
tailer
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "dsmr_parser" ];
|
|
|
|
meta = {
|
|
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/${finalAttrs.src.tag}";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "dsmr_console";
|
|
};
|
|
})
|