Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / py-synologydsm-api / default.nix
blob415d95f8b324e3fb4e7bb9a56782441f054c124d
1 { lib
2 , aiohttp
3 , async-timeout
4 , buildPythonPackage
5 , fetchFromGitHub
6 , poetry-core
7 , pytestCheckHook
8 , pythonOlder
9 , setuptools
12 buildPythonPackage rec {
13   pname = "py-synologydsm-api";
14   version = "2.4.2";
15   format = "pyproject";
17   disabled = pythonOlder "3.8";
19   src = fetchFromGitHub {
20     owner = "mib1185";
21     repo = "py-synologydsm-api";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-uqQY0vt+3JGjciG0t9eh8zK5dnq1QhU6FkzWkKX/+DM=";
24   };
26   nativeBuildInputs = [
27     poetry-core
28     setuptools
29   ];
31   propagatedBuildInputs = [
32     aiohttp
33     async-timeout
34   ];
36   nativeCheckInputs = [
37     pytestCheckHook
38   ];
40   pythonImportsCheck = [
41     "synology_dsm"
42   ];
44   meta = with lib; {
45     description = "Python API for Synology DSM";
46     mainProgram = "synologydsm-api";
47     homepage = "https://github.com/mib1185/py-synologydsm-api";
48     changelog = "https://github.com/mib1185/py-synologydsm-api/releases/tag/v${version}";
49     license = licenses.mit;
50     maintainers = with maintainers; [ uvnikita ];
51   };