mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
53 lines
1 KiB
Nix
53 lines
1 KiB
Nix
{
|
|
aiohttp,
|
|
aiohttp-sse-client,
|
|
aioresponses,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lib,
|
|
poetry-core,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
yarl,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "iometer";
|
|
version = "1.0.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iometer-gmbh";
|
|
repo = "iometer.py";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-50tq+z1+8CX58Yj6GztYXStHMG+IncOHDgwK8WhxVcQ=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
aiohttp-sse-client
|
|
yarl
|
|
];
|
|
|
|
pythonImportsCheck = [ "iometer" ];
|
|
|
|
nativeCheckInputs = [
|
|
aioresponses
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
enabledTestPaths = [
|
|
"tests/test.py"
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/iometer-gmbh/iometer.py/releases/tag/${finalAttrs.src.tag}";
|
|
description = "Python client for interacting with IOmeter devices over HTTP";
|
|
homepage = "https://github.com/iometer-gmbh/iometer.py";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
})
|