53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
stdenv,
|
|
syrupy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyheos";
|
|
version = "1.0.5";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "andrewsayre";
|
|
repo = "pyheos";
|
|
tag = version;
|
|
hash = "sha256-waOeUAvQtx8klFVGnMHi6/OI2s6fxgVjB8aBlaKtklQ=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
syrupy
|
|
];
|
|
|
|
disabledTests = [
|
|
# accesses network
|
|
"test_connect_timeout"
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
# OSError: could not bind on any address out of [('127.0.0.2', 1255)]
|
|
"test_failover"
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
pythonImportsCheck = [ "pyheos" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/andrewsayre/pyheos/releases/tag/${src.tag}";
|
|
description = "Async python library for controlling HEOS devices through the HEOS CLI Protocol";
|
|
homepage = "https://github.com/andrewsayre/pyheos";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|