2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
async-timeout,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2021-10-17 09:34:42 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py-synologydsm-api";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.4.3";
|
2021-10-28 06:52:43 +00:00
|
|
|
format = "pyproject";
|
2021-10-17 09:34:42 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mib1185";
|
2023-02-02 18:25:31 +00:00
|
|
|
repo = "py-synologydsm-api";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-KhYK72kIPeZ32bdJ+3j8rcq/LIrcuELQD+/OQYhktog=";
|
2021-10-17 09:34:42 +00:00
|
|
|
};
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
2023-02-02 18:25:31 +00:00
|
|
|
setuptools
|
2021-10-28 06:52:43 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2023-02-02 18:25:31 +00:00
|
|
|
aiohttp
|
|
|
|
async-timeout
|
2021-10-28 06:52:43 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-10-17 09:34:42 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "synology_dsm" ];
|
2021-10-17 09:34:42 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python API for Synology DSM";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "synologydsm-api";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://github.com/mib1185/py-synologydsm-api";
|
|
|
|
changelog = "https://github.com/mib1185/py-synologydsm-api/releases/tag/v${version}";
|
2021-10-17 09:34:42 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ uvnikita ];
|
|
|
|
};
|
|
|
|
}
|