2021-10-17 09:34:42 +00:00
|
|
|
{ lib
|
2023-02-02 18:25:31 +00:00
|
|
|
, aiohttp
|
|
|
|
, async-timeout
|
2021-10-17 09:34:42 +00:00
|
|
|
, buildPythonPackage
|
2021-10-28 06:52:43 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, pytestCheckHook
|
2023-02-02 18:25:31 +00:00
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
2021-10-17 09:34:42 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py-synologydsm-api";
|
2023-03-24 00:07:29 +00:00
|
|
|
version = "2.2.0";
|
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}";
|
2023-03-24 00:07:29 +00:00
|
|
|
hash = "sha256-L+i6PpN+3CgPp1X/EUQTXz1IUW3S0BJuuPPT4LKBtWs=";
|
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
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-10-28 06:52:43 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-10-17 09:34:42 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"synology_dsm"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python API for Synology DSM";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|