home-assistant: support playstation_network component (#425970)
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
{
|
||||
buildPythonPackage,
|
||||
fetchFromGitea,
|
||||
lib,
|
||||
poetry-core,
|
||||
pycountry,
|
||||
pyrate-limiter,
|
||||
requests,
|
||||
typing-extensions,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "psnawp";
|
||||
version = "3.0.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitea {
|
||||
domain = "codeberg.org";
|
||||
owner = "YoshikageKira";
|
||||
repo = "psnawp";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-JS8VGwIsCr21rwjXCRUXsoVHfFyLTZtgp+ZJcXWCCsQ=";
|
||||
};
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
dependencies = [
|
||||
pycountry
|
||||
pyrate-limiter
|
||||
requests
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "psnawp_api" ];
|
||||
|
||||
# tests access the actual PlayStation Network API
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
changelog = "https://codeberg.org/YoshikageKira/psnawp/releases/tag/${src.tag}";
|
||||
description = "Python API Wrapper for PlayStation Network API";
|
||||
homepage = "https://codeberg.org/YoshikageKira/psnawp";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
||||
@@ -4459,8 +4459,9 @@
|
||||
];
|
||||
"playstation_network" =
|
||||
ps: with ps; [
|
||||
psnawp
|
||||
pyrate-limiter
|
||||
]; # missing inputs: PSNAWP
|
||||
];
|
||||
"plex" =
|
||||
ps: with ps; [
|
||||
plexapi
|
||||
@@ -7425,6 +7426,7 @@
|
||||
"ping"
|
||||
"plaato"
|
||||
"plant"
|
||||
"playstation_network"
|
||||
"plex"
|
||||
"plugwise"
|
||||
"point"
|
||||
|
||||
@@ -12031,6 +12031,8 @@ self: super: with self; {
|
||||
|
||||
psd-tools = callPackage ../development/python-modules/psd-tools { };
|
||||
|
||||
psnawp = callPackage ../development/python-modules/psnawp { };
|
||||
|
||||
psrpcore = callPackage ../development/python-modules/psrpcore { };
|
||||
|
||||
psutil = callPackage ../development/python-modules/psutil { };
|
||||
|
||||
Reference in New Issue
Block a user