Files
nixpkgs/pkgs/development/python-modules/earn-e-p1/default.nix
2026-07-29 09:24:21 +00:00

39 lines
868 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "earn-e-p1";
version = "0.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Miggets7";
repo = "earn-e-p1";
tag = finalAttrs.version;
hash = "sha256-mLSKtuwgyual/pOqBJWn1E52Crg20m4YKPorxRrulhk=";
};
build-system = [ hatchling ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "earn_e_p1" ];
meta = {
description = "Async Python library for communicating with EARN-E P1 energy meters via UDP";
homepage = "https://github.com/Miggets7/earn-e-p1";
changelog = "https://github.com/Miggets7/earn-e-p1/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jamiemagee ];
};
})