472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
aioresponses,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
mashumaro,
|
|
orjson,
|
|
pytest-aiohttp,
|
|
pytest-cov-stub,
|
|
pytest-timeout,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
yarl,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiohasupervisor";
|
|
version = "0.1.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.12";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-Jq9cSdMMXVgRHhQK1LuGwVR6GBTIrw3th7y9huRSQjM=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail "setuptools~=68.0.0" "setuptools>=68.0.0" \
|
|
--replace-fail "wheel~=0.40.0" "wheel>=0.40.0"
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
mashumaro
|
|
orjson
|
|
yarl
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aioresponses
|
|
pytest-aiohttp
|
|
pytest-cov-stub
|
|
pytest-timeout
|
|
pytestCheckHook
|
|
];
|
|
|
|
# Import issue, check with next release
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "aiohasupervisor" ];
|
|
|
|
meta = {
|
|
description = "Client for Home Assistant Supervisor";
|
|
homepage = "https://github.com/home-assistant-libs/python-supervisor-client";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|