4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
47 lines
940 B
Nix
47 lines
940 B
Nix
{ lib
|
|
, aiohttp
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pydantic
|
|
, pytest-aiohttp
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zwave-js-server-python";
|
|
version = "0.46.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "home-assistant-libs";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-EeQ0gUSDsHIJnp1Oc2Imld4ZFa5maX8xj6GzchHlCoc=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
pydantic
|
|
];
|
|
|
|
doCheck = lib.versionAtLeast pytest-aiohttp.version "1.0.0";
|
|
|
|
nativeCheckInputs = [
|
|
pytest-aiohttp
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"zwave_js_server"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python wrapper for zwave-js-server";
|
|
homepage = "https://github.com/home-assistant-libs/zwave-js-server-python";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|