From ea767b13954722e451ba1ab63b4f378e5a0bc45a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 20 Nov 2021 11:13:58 +0100 Subject: [PATCH] python3Packages.qnap-qsw: init at 0.3.0 --- .../python-modules/qnap-qsw/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/qnap-qsw/default.nix diff --git a/pkgs/development/python-modules/qnap-qsw/default.nix b/pkgs/development/python-modules/qnap-qsw/default.nix new file mode 100644 index 000000000000..f4e9a1cdf8b8 --- /dev/null +++ b/pkgs/development/python-modules/qnap-qsw/default.nix @@ -0,0 +1,39 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, requests +}: + +buildPythonPackage rec { + pname = "qnap-qsw"; + version = "0.3.0"; + format = "setuptools"; + + disabled = pythonOlder "3.9"; + + src = fetchFromGitHub { + owner = "Noltari"; + repo = "python-qnap-qsw"; + rev = version; + sha256 = "WP1bGt7aAtSVFOMJgPXKqVSbi5zj9K7qoIVrYCrPGqk="; + }; + + propagatedBuildInputs = [ + requests + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ + "qnap_qsw" + ]; + + meta = with lib; { + description = "Python library to interact with the QNAP QSW API"; + homepage = "https://github.com/Noltari/python-qnap-qsw"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 87b06b9eb148..711b02b7ed86 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7961,6 +7961,8 @@ in { qiskit-terra = callPackage ../development/python-modules/qiskit-terra { }; + qnap-qsw = callPackage ../development/python-modules/qnap-qsw{ }; + qrcode = callPackage ../development/python-modules/qrcode { }; qreactor = callPackage ../development/python-modules/qreactor { };