From 8ace21afa0c0fd3909b37daab553295a6dcf7be1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 5 Dec 2021 13:11:51 +0100 Subject: [PATCH] python3Packages.pyskyqremote: init at 0.2.49 --- .../python-modules/pyskyqremote/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/pyskyqremote/default.nix diff --git a/pkgs/development/python-modules/pyskyqremote/default.nix b/pkgs/development/python-modules/pyskyqremote/default.nix new file mode 100644 index 000000000000..7f76407f033d --- /dev/null +++ b/pkgs/development/python-modules/pyskyqremote/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pycountry +, pythonOlder +, requests +, websocket-client +, xmltodict +}: + +buildPythonPackage rec { + pname = "pyskyqremote"; + version = "0.2.49"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "RogerSelwyn"; + repo = "skyq_remote"; + rev = version; + sha256 = "sha256-Xhr+p/kIp3Sm7swqCsjXHaECntwJnBLyGlcSg2lsxZc="; + }; + + propagatedBuildInputs = [ + pycountry + requests + websocket-client + xmltodict + ]; + + # Project has no tests, only a test script which looks like anusage example + doCheck = false; + + pythonImportsCheck = [ + "pyskyqremote" + ]; + + meta = with lib; { + description = "Python module for accessing SkyQ boxes"; + homepage = "https://github.com/RogerSelwyn/skyq_remote"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 923021d96659..2ce365b5041d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5879,6 +5879,8 @@ in { pyskyqhub = callPackage ../development/python-modules/pyskyqhub { }; + pyskyqremote = callPackage ../development/python-modules/pyskyqremote { }; + pysolcast = callPackage ../development/python-modules/pysolcast { }; pysyncthru = callPackage ../development/python-modules/pysyncthru { };