mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-30 01:40:18 +00:00
44 lines
942 B
Nix
44 lines
942 B
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
pytest-aiohttp,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "haveniaq";
|
|
version = "0.1.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "krhtzoa";
|
|
repo = "haveniaq-python";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-cJyjXnWD9qC3q+Hu3JBrmAdtEOslP8+6YQBBMFunBBk=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [ aiohttp ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-aiohttp
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "haveniaq" ];
|
|
|
|
meta = {
|
|
description = "Async Python client for HAVEN IAQ local HTTP APIs";
|
|
homepage = "https://github.com/krhtzoa/haveniaq-python";
|
|
changelog = "https://github.com/krhtzoa/haveniaq-python/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ lib.maintainers.jamiemagee ];
|
|
};
|
|
})
|