From 917d7217a584f1e208967ad31eae9c488fd3530e Mon Sep 17 00:00:00 2001 From: Nikita Uvarov Date: Wed, 20 Oct 2021 15:42:13 +0200 Subject: [PATCH] pythonPackages.py-synologydsm-api: init at 1.0.2 --- .../py-synologydsm-api/default.nix | 30 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/python-modules/py-synologydsm-api/default.nix diff --git a/pkgs/development/python-modules/py-synologydsm-api/default.nix b/pkgs/development/python-modules/py-synologydsm-api/default.nix new file mode 100644 index 000000000000..3aa0fe76fff0 --- /dev/null +++ b/pkgs/development/python-modules/py-synologydsm-api/default.nix @@ -0,0 +1,30 @@ +{ lib +, buildPythonPackage +, fetchPypi +, urllib3 +, requests +}: + +buildPythonPackage rec { + pname = "py-synologydsm-api"; + version = "1.0.2"; + + src = fetchPypi { + pname = "synologydsm-api"; + inherit version; + sha256 = "42ea453ef5734dd5b8163e3d18ef309658f0298411720e6b834bededd28c5d53"; + }; + + propagatedBuildInputs = [ urllib3 requests ]; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9705d6f1f10d..65392f5605fb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5995,6 +5995,8 @@ in { py-dmidecode = callPackage ../development/python-modules/py-dmidecode { }; + py-synologydsm-api = callPackage ../development/python-modules/py-synologydsm-api { }; + py-ubjson = callPackage ../development/python-modules/py-ubjson { }; py17track = callPackage ../development/python-modules/py17track { };