diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pyskyqremote/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pyskyqremote/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pyskyqremote/default.nix b/nixpkgs/pkgs/development/python-modules/pyskyqremote/default.nix new file mode 100644 index 000000000000..85fc18463690 --- /dev/null +++ b/nixpkgs/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.54"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "RogerSelwyn"; + repo = "skyq_remote"; + rev = version; + sha256 = "sha256-Z3fcihyK8QHtdREXWt2ESqjwAwxFZFEI9OXf3Y9onmw="; + }; + + 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 ]; + }; +} |