depot/third_party/nixpkgs/pkgs/development/python-modules/hass-nabucasa/default.nix

79 lines
1.5 KiB
Nix
Raw Normal View History

{ lib
, acme
, aiohttp
, atomicwrites-homeassistant
, attrs
, buildPythonPackage
, ciso8601
, cryptography
, fetchFromGitHub
, fetchpatch
, pycognito
, pytest-aiohttp
, pytest-timeout
, pytestCheckHook
, pythonOlder
, setuptools
, snitun
, syrupy
, xmltodict
}:
buildPythonPackage rec {
pname = "hass-nabucasa";
version = "0.74.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "nabucasa";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-r4Huvn9mBqnASpUd+drwORE+fApLV/l6Y3aO/UIiEC8=";
};
patches = [
(fetchpatch {
# Add missing wait_for_close mock in AiohttpClientMockResponse
url = "https://github.com/NabuCasa/hass-nabucasa/commit/097607e0fe30932ca5cba0c50fda125f90f5f3de.patch";
hash = "sha256-ZSh+1kGBb6ltNnd0RaDECXiJDEGJBOw1wN2HXPgfy+o=";
})
];
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
acme
aiohttp
atomicwrites-homeassistant
attrs
ciso8601
cryptography
pycognito
snitun
];
nativeCheckInputs = [
pytest-aiohttp
pytest-timeout
pytestCheckHook
syrupy
xmltodict
];
pythonImportsCheck = [
"hass_nabucasa"
];
meta = with lib; {
homepage = "https://github.com/NabuCasa/hass-nabucasa";
description = "Python module for the Home Assistant cloud integration";
changelog = "https://github.com/NabuCasa/hass-nabucasa/releases/tag/${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ Scriptkiddi ];
};
}