mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-30 01:40:18 +00:00
42 lines
890 B
Nix
42 lines
890 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
aiohttp,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "aiosaj";
|
|
version = "0.2.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Rsarrechia";
|
|
repo = "aiosaj";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-9eYaRHepiv2FjgOu5vw0Fth9fVg7EHUPZgvuPuhaCng=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ aiohttp ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "aiosaj" ];
|
|
|
|
meta = {
|
|
description = "Async library to read data from SAJ solar inverters";
|
|
homepage = "https://github.com/Rsarrechia/aiosaj";
|
|
changelog = "https://github.com/Rsarrechia/aiosaj/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.jamiemagee ];
|
|
};
|
|
})
|