Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
54 lines
1.0 KiB
Nix
54 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
construct,
|
|
paho-mqtt,
|
|
pyserial-asyncio,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "amshan";
|
|
version = "2.1.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "toreamun";
|
|
repo = "amshan";
|
|
rev = version;
|
|
hash = "sha256-aw0wTqb2s84STVUN55h6L926pXwaMSppBCfXZVb87w0=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
construct
|
|
paho-mqtt
|
|
pyserial-asyncio
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "han" ];
|
|
|
|
# 2021.12.1 is an older version
|
|
passthru.skipBulkUpdate = true;
|
|
|
|
meta = {
|
|
description = "Decode smart power meter data stream of Cosem HDLC frames used by MBUS";
|
|
longDescription = ''
|
|
The package has special support of formats for Aidon, Kaifa and Kamstrup
|
|
meters used in Norway and Sweden (AMS HAN).
|
|
'';
|
|
homepage = "https://github.com/toreamun/amshan";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ bjornfor ];
|
|
};
|
|
}
|