1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, poetry-core
5, pytestCheckHook
6, requests
7, urllib3
8}:
9
10buildPythonPackage rec {
11 pname = "py-synologydsm-api";
12 version = "1.0.8";
13 format = "pyproject";
14
15 src = fetchFromGitHub {
16 owner = "mib1185";
17 repo = "synologydsm-api";
18 rev = "v${version}";
19 sha256 = "sha256-9bh7uLt9+uda6yFCWV6xUh//jFC4DgiS+KtRXQrU3A8=";
20 };
21
22 nativeBuildInputs = [
23 poetry-core
24 ];
25
26 propagatedBuildInputs = [
27 requests
28 urllib3
29 ];
30
31 checkInputs = [
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [
36 "synology_dsm"
37 ];
38
39 meta = with lib; {
40 description = "Python API for Synology DSM";
41 homepage = "https://github.com/hacf-fr/synologydsm-api";
42 license = licenses.mit;
43 maintainers = with maintainers; [ uvnikita ];
44 };
45}