40 lines
834 B
Nix
40 lines
834 B
Nix
{ pkgs, fetchPypi, ... }:
|
|
pkgs.stable.python3Packages.buildPythonPackage rec {
|
|
pname = "homeassistant_api";
|
|
version = "5.0.0";
|
|
format = "pyproject";
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-UNKTtgInrVJtjHb1WVlUbcbhjBOtTX00eHmm54ww0rY=";
|
|
};
|
|
|
|
# do not run tests
|
|
doCheck = false;
|
|
nativeBuildInputs = with pkgs.stable.python3Packages; [
|
|
poetry-core
|
|
requests-cache
|
|
];
|
|
dependencies = with pkgs.stable.python3Packages; [
|
|
requests-cache
|
|
pydantic
|
|
websockets
|
|
];
|
|
propagatedBuildInputs = with pkgs.stable.python3Packages; [
|
|
aiohttp
|
|
aiohttp-client-cache
|
|
pydantic
|
|
requests
|
|
requests-cache
|
|
simplejson
|
|
websockets
|
|
];
|
|
pythonRelaxDeps = [
|
|
"requests-cache"
|
|
"pydantic"
|
|
"websockets"
|
|
];
|
|
pythonImportsCheck = [
|
|
"homeassistant_api"
|
|
];
|
|
}
|