Files

50 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
aiohttp,
aioresponses,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "aioindiallsky";
version = "0.1.8";
pyproject = true;
src = fetchFromGitHub {
owner = "TN-1";
repo = "aioindiallsky";
tag = "V${finalAttrs.version}";
hash = "sha256-DTw1ItFlmSwHjnlvHdW8QGkYX4BkMgJANFb67ht8qow=";
};
build-system = [ setuptools ];
dependencies = [ aiohttp ];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytestCheckHook
];
disabledTests = [
# network access
"test_login_success"
"test_login_failure"
];
pythonImportsCheck = [ "aioindiallsky" ];
meta = {
description = "Asynchronous Python client library for indi-allsky API & WebSocket event stream";
homepage = "https://github.com/TN-1/aioindiallsky";
changelog = "https://github.com/TN-1/aioindiallsky/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jamiemagee ];
};
})