mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
50 lines
1.0 KiB
Nix
50 lines
1.0 KiB
Nix
{
|
|
aiohttp,
|
|
aiohttp-sse-client2,
|
|
aresponses,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
lib,
|
|
mashumaro,
|
|
poetry-core,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysmlight";
|
|
version = "0.1.4";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "smlight-tech";
|
|
repo = "pysmlight";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-qqvjLSGZx4F1U80jc0z42D7PuBw3D7EEbL4+GoTJgoE=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
aiohttp-sse-client2
|
|
mashumaro
|
|
];
|
|
|
|
pythonImportsCheck = [ "pysmlight" ];
|
|
|
|
nativeCheckInputs = [
|
|
aresponses
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/smlight-tech/pysmlight/releases/tag/v${version}";
|
|
description = "Library implementing API control of the SMLIGHT SLZB-06 LAN Coordinators";
|
|
homepage = "https://github.com/smlight-tech/pysmlight";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|