2021-10-17 09:34:42 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-10-28 06:52:43 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, pytestCheckHook
|
2021-10-17 09:34:42 +00:00
|
|
|
, requests
|
2021-10-28 06:52:43 +00:00
|
|
|
, urllib3
|
2021-10-17 09:34:42 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py-synologydsm-api";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "1.0.6";
|
2021-10-28 06:52:43 +00:00
|
|
|
format = "pyproject";
|
2021-10-17 09:34:42 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mib1185";
|
|
|
|
repo = "synologydsm-api";
|
|
|
|
rev = "v${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "sha256-jAdD6FCbsBocJNX7o+dpthgHaPLIueFWJMzBNoKAq7w=";
|
2021-10-17 09:34:42 +00:00
|
|
|
};
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-10-17 09:34:42 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"synology_dsm"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python API for Synology DSM";
|
|
|
|
homepage = "https://github.com/hacf-fr/synologydsm-api";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ uvnikita ];
|
|
|
|
};
|
|
|
|
}
|