depot/third_party/nixpkgs/pkgs/development/python-modules/apsystems-ez1/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

41 lines
965 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
aiohttp,
poetry-core,
pytest-asyncio,
}:
buildPythonPackage rec {
pname = "apsystems-ez1";
version = "2.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "SonnenladenGmbH";
repo = "APsystems-EZ1-API";
rev = "refs/tags/${version}";
hash = "sha256-CG+QpdJfZt1S6IDDjabRjwuRflURFc1QYo39kf/p0Zw=";
};
build-system = [ poetry-core ];
dependencies = [ aiohttp ];
pythonImportsCheck = [ "APsystemsEZ1" ];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
];
meta = {
changelog = "https://github.com/SonnenladenGmbH/APsystems-EZ1-API/releases/tag/${version}";
description = "Streamlined interface for interacting with the local API of APsystems EZ1 Microinverters.";
homepage = "https://github.com/SonnenladenGmbH/APsystems-EZ1-API";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
}