Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839{ lib, buildPythonPackage, fetchFromGitHub, hatchling, pytest-asyncio, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "earn-e-p1"; version = "0.3.0"; pyproject = true;
src = fetchFromGitHub { owner = "Miggets7"; repo = "earn-e-p1"; tag = finalAttrs.version; hash = "sha256-n5ICM2sCcpjgv/sgUeA8W1YGpEgBQzSKeFwGo4abQAg="; };
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 ]; };})